GNOME Bugzilla – Bug 746571
librsvg is unable to display a inkscape optimized svg ffile with masks
Last modified: 2017-12-13 18:07:27 UTC
Created attachment 300022 [details] a simpe globe with masks see summary
Which exact librsvg version is this about?
(In reply to André Klapper from comment #1) > Which exact librsvg version is this about? $ pacman -Q librsvg librsvg 1:2.40.8-1 $
As you say this bug applies only to optimized SVG. Does this mean the non-optimized SVG file doesn't show issues? So can you provide the non-optimized Version too. Then it would be easier to find the fault location. You have to keep in mind that libRSVG has limited support for masks.
sorry, I don't have an unoptimized version anymore but if I import the file in svg-edit(http://svg-edit.googlecode.com/svn/branches/stable/editor/svg-editor.html) and save it back to svg, librsvg is able to display that file again. Also for some reason any gecko or webkit browser can display this file correctly.
Can you upload that file that works again. I cannot reproduce your steps with libRSVG 2.40.9.
Here: https://git.gnome.org/browse/librsvg/tree/rsvg-mask.c#n80 initializing x, y, width and height respectively to -10%, -10%, 120% and 120% as the spec describes: https://www.w3.org/TR/SVG/masking.html#MaskElementXAttribute seems to fix at least the mask issue in this particular case, perhaps it breaks something else.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/105.