Re: Syntax for Ranges?

On 29/10/05, Lachlan Hunt <lachlan.hunt@lachy.id.au> wrote:
> > 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?

I was thinking much the same. I like the idea of having min/max
properties condensed into one, certainly with there being a number of
voices about the web asking for min/max margins and paddings.

Is there a problem if we simply add a third parameter as follows?

| height: range(initial, min, max);

Using the word 'initial' is of course less than ideal since it's used
elsewhere in CSS, but for sake of this rough example I hope that's OK
;-)

Ben
http://ben-ward.co.uk

Received on Saturday, 29 October 2005 12:35:22 UTC