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.

Received on Wednesday, 28 March 2012 01:23:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 22 June 2015 03:33:47 UTC