Inkscape: A Vector Drawing Tool

percentage units don't work

Reported by Rwst on 2005-07-22
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Unassigned

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
advance

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 http://www.w3.org/TR/SVG11/images/coords/Units.png
This is what it looks like in Inkscape http://img520.imageshack.us/img520/6489/unitsyw5.png

This example can be found here http://www.w3.org/TR/SVG11/coords.html#ExampleUnits
Excerpt:
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).

Peter Lewerin (vermeil) on 2007-12-16
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
~suv (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