After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 760180 - Markers don't handle their viewBox correctly; end up with wrong offsets
Markers don't handle their viewBox correctly; end up with wrong offsets
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2016-01-05 21:00 UTC by Federico Mena Quintero
Modified: 2016-01-08 01:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
painting-marker-06-f.svg (9.66 KB, application/octet-stream)
2016-01-05 21:01 UTC, Federico Mena Quintero
Details
Simplified SVG code (9.66 KB, image/svg+xml)
2016-01-06 09:19 UTC, mik@gmx.org
Details

Description Federico Mena Quintero 2016-01-05 21:00:09 UTC
See the attached SVG, which comes from the W3C SVG test suite.  The markers on the left have an incorrect tranformation.  The "markers" on the right are done using explicit paths, so they render correctly.
Comment 1 Federico Mena Quintero 2016-01-05 21:01:24 UTC
Created attachment 318291 [details]
painting-marker-06-f.svg
Comment 2 Federico Mena Quintero 2016-01-05 21:27:06 UTC
Actually, it is the viewBox for the marker that we are not handling correctly.  Open the SVG in a text editor; the description near the top mentions the use of a non-default viewBox for markers.
Comment 3 mik@gmx.org 2016-01-06 09:19:11 UTC
Created attachment 318309 [details]
Simplified SVG code
Comment 4 mik@gmx.org 2016-01-06 09:36:53 UTC
I've simplified the SVG code and then it looks alright. The W3C example uses complex scenarios for sophisticated testing. I can't image anybody needs that really. This is not a normal use case and everybodys still happy even without such abilites.

I wouldn't fix it until someone comes with a real world example.
Comment 5 Federico Mena Quintero 2016-01-08 01:49:55 UTC
Fixed in master with commit 63371906c63d74bfb1f1ca6b10237d3b563bb55a