This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15506 - Check that SVG and CSS have the same unit types
Summary: Check that SVG and CSS have the same unit types
Status: NEW
Alias: None
Product: SVG
Classification: Unclassified
Component: Units (show other bugs)
Version: SVG 1.1 Full
Hardware: PC All
: P2 normal
Target Milestone: Recommendation
Assignee: Doug Schepers
QA Contact: SVG Public List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 19:17 UTC by Dirk Schulze
Modified: 2012-02-21 04:19 UTC (History)
4 users (show)

See Also:


Attachments

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

<angle>:
CSS: ‘deg’, ‘grad’, ‘rad’, ‘turn’
SVG: 'deg', 'grad', 'rad'

<length>:
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:
http://www.w3.org/TR/css3-values/#lengths
http://www.w3.org/TR/css3-values/#angles
http://www.w3.org/TR/SVG/types.html#syntax
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.