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

Re: Syntax for Ranges?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Sat, 29 Oct 2005 18:22:59 +1000
Message-ID: <43633163.9070002@lachy.id.au>
To: Kelly Miller <lightsolphoenix@gmail.com>
CC: www-style@w3.org

Kelly Miller wrote:
> 
> 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.

So, what height would it be?  Any random height between 18px and 30em?

> Anyone got any suggestions/ideas?

min(), max() and calc() functions have all been suggested previously and 
make a lot more sense than this.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Saturday, 29 October 2005 08:23:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:41 GMT