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

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 UTC