- From: Kornel Lesinski <kornel@osiolki.net>
- Date: Sat, 29 Oct 2005 21:41:41 +0100
- To: "Kelly Miller" <lightsolphoenix@gmail.com>
- Cc: www-style@w3.org
On Sat, 29 Oct 2005 03:22:26 +0100, Kelly Miller <lightsolphoenix@gmail.com> 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. > 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? I'd prefer min/max functions, because they give more freedom. For example I could have few maximums/minimums in different units: height: max(18px, 2cm, min(auto, 180px, 20cm)); /* any value between 2-20cm and 18-180px. */ -- regards, Kornel Lesiński
Received on Saturday, 29 October 2005 20:42:23 UTC