W3C home > Mailing lists > Public > www-style@w3.org > October 2005

Re: Syntax for Ranges?

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 29 Oct 2005 13:16:11 -0700
Message-ID: <006a01c5dcc5$9b4e11a0$3201a8c0@Terra>
To: "Kelly Miller" <lightsolphoenix@gmail.com>, <www-style@w3.org>

> Anyone got any suggestions/ideas?

By definition range is not a value, but set of possible values.

1) What will be a calculated value for the height: range(18px,30em) ? What 
function is being used for final value?
2) What will happen if range become empty? E.g. in some circumstances 
range(18px,30em) is empty.

To be short:
Ranges make real sense only as a parameter of other function computing real 
For example:
    height: [10%,12em, 30em]
    height: [10%%,12em, 30em]
make sense as these two denote the function of value calculation (% or %%) 
and boundaries.

Andrew Fedoniouk.

----- Original Message ----- 
From: "Kelly Miller" <lightsolphoenix@gmail.com>
To: <www-style@w3.org>
Sent: Friday, October 28, 2005 7:22 PM
Subject: Syntax for Ranges?

> I was just sitting there thinking about min-height and max-height, and I 
> was thinking:  why not have a syntax for unit ranges?  Maybe something 
> like this:
> height: range(18px,30em) - No smaller than 18px, no larger than 30em.
> height: range(18px) - No smaller than 18px.
> height: range(,30em) - No larger than 30em.
> The syntax is the same as the one used in regular expression syntax, but I 
> think it'd work here.  Anyone got any suggestions/ideas?
> -- 
> http://www.mozilla.org/products/firefox/ - Get Firefox!
> http://www.mozilla.org/products/thunderbird/ - Reclaim Your Inbox!
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
Received on Saturday, 29 October 2005 20:16:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:21 UTC