Mask from SVG not rendered properly, shows up fine in exported SVG or PDF

Bug #1524049 reported by Ion Dune
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

OS: Windows 10 Enterprise Insider Preview
Inkscape Version: 0.91 r13725

I've got an SVG that uses a mask to create a gear shape out of a circle. The SVG renders fine in IE, Chrome, and codepen as seen here: http://codepen.io/iondune/pen/JGoeZN

The problem is that when I open the SVG in Inkscape, it appears as simply a white circle with no mask (though clicking on the shape indicates that the object is masked). If I export a PNG, I get the same unmasked results.

The weird part is that if I export an SVG or PDF out of Inkscape, the results look correct. Despite showing only a white circle in Inkscape, the exported PDF has the correct gear shape and if I view the exported SVG in anything but Inkscape it appears correct.

Tags: masking svg
Revision history for this message
su_v (suv-lp) wrote :

Please add information about OS/platform and Inkscape version to the bug description, thank you.

To ease testing and triaging of the reported issue, the bug team would appreciate it if you could attach a test case (SVG file) directly to the bug report.

Changed in inkscape:
status: New → Incomplete
tags: added: masking svg
Revision history for this message
Ion Dune (iondune) wrote :
description: updated
Changed in inkscape:
status: Incomplete → New
Revision history for this message
su_v (suv-lp) wrote :

Thank you for taking the time to file this report - the issue is known and already tracked in
* Bug #794472 “Only the first child of a mask is considered by Inkscape”
  https://bugs.launchpad.net/inkscape/+bug/794472

See also attached modified version of the test case which wraps the mask content with a group - it renders as expected in Inkscape 0.91 and current trunk (r14517).

Linking as duplicate to bug #794472.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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