Re: [svgwg] Where are unitless lengths allowed? What do they mean?

> we could add a clear default correspondence between unitless and px for length

Apart from the couple of cases of unitless degrees you mentioned, unitless values are in the current coordinate system. SVG, like most vector graphics systems, defines things in terms of a top-level word coordinate system and then transforms to create derived local coordinate systems.
The fact that one px maps to one user unit was a retrospective patch; people used to css px in non-graphical context may be surprised to find that 00001px can be huge in some images, while 5000px can be tiny in others - all depending on how the world coordinate system was set up.

I agree that this should be better defined, but "hey just treat user units as px, you know what those are" is very misleading.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/379#issuecomment-358284731 using your GitHub account

Received on Wednesday, 17 January 2018 12:04:53 UTC