At the SVG-edit project, we are working on supporting units. Initially this 
seemed fairly straightforward to me, just use the CSS units supported in the 
SVG spec. However, only some elements with length-based attributes (like rect) 
can use such units, where others (like path) cannot. 

This wouldn't be a problem if all units directly mapped to each other, but as 
different viewers can have different px/inch ratios, they do not. Here [1]'s  
an example of the problem on Stack Overflow.

A solution given to the problem is to set the desired base unit on the root 
element together with a viewBox, then just use user units on all elements 
inside. This works fine, it just means that no other unit can be used inside 
the image, as its proportion would be incorrect. 

So my thought for SVG-edit was initially to have two different unit modes: The 
first would allow different units within the image, which would have the 
potential problem of having an inconsistent appearance among viewers. The 
second would set a base unit on the root w/viewBox, and just use user units 
everywhere else.

The average user however, would likely have trouble understanding the 
difference, so I'd prefer not to have both modes. Which leads me to the 
question I'd like to ask here: Have you actually used/needed an SVG image where 
multiple units are used? With perhaps a <rect width="3cm"/> and a <path/>? I 
don't count percentages here, just everything else. If the use cases for this 
are rare enough, I think I'll drop this option. 

Thanks,

Alexis Deveria

[1] 
http://stackoverflow.com/questions/1346922/svg-and-dpi-absolute-units-and-user-units-inkscape-vs-firefox-vs-imagemagick/2306752



------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to