Re: Syntax for Ranges?

> Anyone got any suggestions/ideas?

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

Questions:
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 
value.
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.
http://terrainformatica.com




----- 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