W3C home > Mailing lists > Public > www-style@w3.org > July 2010

RE: [css3-values] proposal for handling division and units in calc() [ACTION-205]

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Tue, 27 Jul 2010 03:54:01 +0000
To: "L. David Baron" <dbaron@dbaron.org>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E23E2286B@TK5EX14MBXC120.redmond.corp.microsoft.com>
> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On

> Therefore, I propose that:
>  1. We drop the 'mod' operator since it only makes sense when
>     both operands have the same units.
>  2. The right operand to the '/' operator be required to be unitless
>     (that is, a number or an expression composed of numbers).
>  3. Division by zero be a parse error (as I think it was in earlier
>     drafts of the specification, perhaps?).
>  4. Leaf values inside a calc() expression must all be either (a)
>     numbers or (b) legal values for the property, or things that
>     would be legal values if it weren't for range restrictions (such
>     as the restriction that 'width' accepts only positive values).

This seems very reasonable. I'm in support as well.
Received on Tuesday, 27 July 2010 03:54:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:48 UTC