Viewbox option doesn't work when units are set
Bug #576958 reported by
jazzynico
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
jazzynico | ||
Scour |
Fix Released
|
Low
|
Unassigned |
Bug Description
Hi,
I'm trying to scour an SVG file containing units in height and width attributes (in my case, mm), and these attributes are not replaced with a viewbox. Removing the unit resolves this issue. Could you add unit support for the viewbox?
Thanks!
Related branches
Changed in scour: | |
status: | Fix Committed → Fix Released |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It looks like librsvg does not handle viewBox coordinates with units so well; in fact, your test file renders absolutely nothing if I change
width="210mm" height="297mm"
to
viewBox="0 0 210mm 297mm"
. Firefox does handle it, though, and so will Inkscape I suppose. :)