W3C home > Mailing lists > Public > www-style@w3.org > December 2009

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 16 Dec 2009 22:00:44 -0600
Message-ID: <dd0fbad0912162000n27974181ie3a94d4ef422355@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:47:12 GMT