percentage units don't work

Bug #166725 reported by Rwst
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
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.

Tags: svg units
Revision history for this message
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

Revision history for this message
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).

Changed in inkscape:
status: New → Confirmed
jazzynico (jazzynico)
tags: added: svg
Andreas Becker (abecker)
Changed in inkscape:
assignee: Peter Moulder (pjrm) → Andreas Becker (abecker)
Revision history for this message
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)
Changed in inkscape:
assignee: Andreas Becker (abecker) → nobody
su_v (suv-lp)
tags: added: units
Revision history for this message
Jonathan Hofinger (jhofinger) wrote :

I'm unable to replicate this issue in Inkscape 1.1-dev (6b4d57f, 2020-04-01), Windows 10. The file renders as expected. 0.92.4 still misses the 1% boders. Please reopen on http://inkscape.org/report if the problem occurs again.

Closed by: https://gitlab.com/jhofinger

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

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