Bug 15506 - Check that SVG and CSS have the same unit types
Check that SVG and CSS have the same unit types
Status: NEW
Product: SVG
Classification: Unclassified
Component: Units
SVG 1.1 Full
PC All
: P2 normal
: Recommendation
Assigned To: Doug Schepers
SVG Public List
Depends on:
  Show dependency treegraph
Reported: 2012-01-10 19:17 UTC by Dirk Schulze
Modified: 2012-02-21 04:19 UTC (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2012-01-10 19:17:37 UTC
It needs to be checked if CSS and SVG share the same unit types for <length> and <angle>. This is important for the transform primitives. 

The units are not necessarily the same at the moment. Just as a comparison for

CSS: ‘deg’, ‘grad’, ‘rad’, ‘turn’
SVG: 'deg', 'grad', 'rad'

CSS: ‘em’, ‘ex’, ‘ch’, ‘rem’, ‘vw’, ‘vh’, ‘vm’, ‘cm’, ‘mm’, ‘in’, ‘pt’, ‘pc’, ‘px’
SVG: 'number', '%', 'em', 'ex', 'px', 'cm', 'mm', 'in', 'pt', 'pc' ('%' just for presentation attributes)

See also:
Comment 1 Dirk Schulze 2012-02-21 04:19:58 UTC
CSS3 Transforms always relies on "CSS3 Values and Units" with the exception of <number> on SVG elements. SVG Transforms don't have units anyway.  Therefore it is not an issue that we need to solve in CSS3 Transforms. The SVG WG should take a look at it. Moving the bug to SVG.