Different units in svg header with units in document properities

Bug #605089 reported by LordBlick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
Matthew Petroff

Bug Description

Inkscape 0.47 r22583/PLD Linux
I'd prefer mm units in my projects, so usually I'm set it as default in document properties. Why it is not set in <svg width="XXmm" height="XXmm" as described on http://www.w3.org/TR/SVG11/types.html ? If it will be implemented, other "dirty" default units definitions maybe can be omitted...
If I save document as clean svg, I've got a trouble with it...

Quote :
When lengths are used in an SVG attribute, a <length> is instead defined as follows:

length ::= number ("em" | "ex" | "px" | "in" | "cm" | "mm" | "pt" | "pc" | "%")?

Tags: svg units
Revision history for this message
su_v (suv-lp) wrote :

Setting the default units in 'Document properties' adds
  <sodipodi:namedview (…) inkscape:document-units="mm" (…) >
and leaves the <svg> attributes 'width and 'height' unitless (Inkscape in this case uses px).

Default templates with custom units however do have the units added to the SVG width and height attributes.
<http://www.w3.org/TR/SVG11/struct.html#SVGElementWidthAttribute>

Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
tags: added: svg
removed: default
Revision history for this message
Matthew Petroff (matthewpetroff) wrote :

As of r12554, setting the page size units in document properties changes the SVG width and height units.

Changed in inkscape:
assignee: nobody → Matthew Petroff (matthewpetroff)
status: Confirmed → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.49
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.