Re: [css3-values] Adding min() and max() into calc() grammar

On Wed, Dec 16, 2009 at 3:17 PM, L. David Baron <dbaron@dbaron.org> wrote:
> Add the production:
> <length-min-max> := ( 'min(' | 'max(' )
>                    <length-expression>
>                    ( ',' <length-expression> )+
>                    ')'
> to add min() and max() accepting 2 or more arguments.
> (Alternatively, they could be required to take 1 or more arguments,
> or could take exactly 2 arguments.)

For the sake of machine-generated CSS, max() and min() should take 1
or more arguments.  It simplifies cases when you're trying to guard an
expression with multiple values, where there may be only a single
expression.  This shouldn't be confusing to authors hand-generating
their CSS.

~TJ

Received on Thursday, 17 December 2009 04:01:16 UTC