W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2012

Re: Parse new SVG Transform presentation attributes with "SVG parsing rules"

From: Mike Lawther <mikelawther@chromium.org>
Date: Wed, 28 Mar 2012 12:22:22 +1100
Message-ID: <CAC7btF5Vevv=2weruABP1sGgBirrC1eP9c9kKnkcNFXDZ9srKQ@mail.gmail.com>
To: public-fx@w3.org
Hi - I've been implementing CSS3 calc() in WebKit.

calc() as specced (http://www.w3.org/TR/css3-values/#calc) does not support
unitless lengths :

  "The resolved type must be valid for where the expression is placed;
otherwise, the expression is invalid. The resolved type of the expression
is determined by the types of the values it contains. NUMBER tokens are of
type <number> [...] At +, or -, check that both sides have the same
type; resolve to that type."

The WebKit implementation was done to this spec. Requiring units in calc()
does not break any existing content, since there isn't any.

    mike
Received on Wednesday, 28 March 2012 01:23:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 28 March 2012 01:23:13 GMT