Re: Fwd: SVG Path, Polyline, and Polygon data coordinates

Hello,

I think, the simpler and better approach you can already use
in SVG tiny 1.1 is to use no units at all in the content, but 
using a viewBox and if required use only units for width and
height of the svg root element.
This scales the complete graphics and you do not have to
worry about units within the content at all.

Units in path data may create conflicts with scientific notation,
the current commands or commands added in the future, 
respectively the interpretation of such data will get pretty complex 
with additional units - resulting maybe in a slowdown for the
presentation of path data and everytime a command is added to
SVG paths or a unit is added to CSS one has to care about
conflicts again, path data parsers have to be changed again
with the risk of more bugs than before ...

Already now some viewers have problems to get every possible
combination of path commands right and there are even more
problems with units or constructs with mixed units.
Typically authors can avoid a lot of trouble not using units in the
content at all. Concerning path data they can avoid trouble, if
they only use 'usual' combinations instead of extreme short notations.

Olaf

Received on Monday, 7 October 2013 08:24:39 UTC