Default UA style sheet

In http://www.w3.org/TR/SVG/styling.html#UAStyleSheet it states that the
default UA style sheet includes the rule

  svg { width:attr(width); height:attr(height) }

the intention being that it will cause the width/height attributes on
the <svg> to influence the layout of the CSS box it corresponds to.
However, if (as is common) these attributes are specified in user units,
then the CSS property values will be invalid.  coords.html#ViewportSpace
does say

  If the ‘width’ or ‘height’ attributes on the outermost svg element are
  in user units (i.e., no unit identifier has been provided), then the
  value is assumed to be equivalent to the same number of "px" units
  (see Units).

but that is not going to influence how attr() works.

What to do about this?

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Thursday, 30 December 2010 00:39:19 UTC