percentage units don't work

Bug #166725 reported by Rwst on 2005-07-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The file coords/Units.svg from the SVG11 standard will not show the
percentage examples as in the control PNG with the same name.

vonHalenbach (lustik) wrote :

Thank you for taking the time to report this feature request and helping
to make Inkscape better. You requested this feature a long while ago and
there hasn't been any activity in it recently. We were wondering; is
this still on your wishlist? Can you try with latest Inkscape release
and see if recent improvements have obsoleted your request? Thanks in

prkos (prkos) wrote :

Im using the build from 14th Dec and the bug is still there

Im attaching the file in question: Units.svg

This is the control .png
This is what it looks like in Inkscape

This example can be found here
The three rectangles on the right demonstrate the use of percentages. Note that the width and height of the viewport in the user coordinate system for the viewport element (in this case, the outermost 'svg' element) are 4000 and 2000, respectively, because processing the viewBox attribute results in a transformed user coordinate system. The topmost rectangle, which is specified in percentage units, is exactly the same size as the middle rectangle, which is specified in equivalent user units. In particular, note that the 'stroke-width' property in the middle rectangle is set to 1% of the sqrt((actual-width)**2 + (actual-height)**2)) / sqrt(2), which in this case is .01*sqrt(4000*4000+2000*2000)/sqrt(2), or 31.62. The bottom rectangle of the group illustrates what happens when values specified in percentage units are scaled.

Might be interesting to note that Firefox displays the third column correctly, but not middle column (em).

Changed in inkscape:
status: New → Confirmed
jazzynico (jazzynico) on 2010-01-06
tags: added: svg
Andreas Becker (abecker) on 2011-07-31
Changed in inkscape:
assignee: Peter Moulder (pjrm) → Andreas Becker (abecker)
Andreas Becker (abecker) wrote :

In Inkscape 0.48.2, the rectangle size is correct, but the two strokes which have the width “1%” are not rendered.

Andreas Becker (abecker) on 2011-08-03
Changed in inkscape:
assignee: Andreas Becker (abecker) → nobody
su_v (suv-lp) on 2014-01-26
tags: added: units
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions