Inkscape: A Vector Drawing Tool

Incorrect rendering of masked element

Reported by henrypijames on 2011-06-08
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Unassigned

Bug Description

Inkscape version: 0.48.1 r9760 on Windows XP x86

Sample SVG producing the bug see attachment or:

http://paste2.org/p/1458206

Not only does it misrender on screen, export to EMF is even worse (try save as EMF and then load the EMF back).

File renders correctly in Firefox 4, Safari 5 and Opera 11; Chrome 11 has a different problem with it (regarding mask + transform, apparently).

henrypijames (henrypijames-d) wrote :
description: updated
description: updated
~suv (suv-lp) on 2011-06-08
tags: added: masking
removed: mask
~suv (suv-lp) on 2011-06-08
tags: added: css
~suv (suv-lp) wrote :

Reproduced with Inkscape 0.48.1 and Inkscape 0.48+devel r10262 on Mac OS X 10.5.8 (i386)
Compared to Firefox 3.6, Safari 5.0.4 , Opera 11.11, Chromium 14.0.786.0 and Squiggle (Batik 18pre)
rsvg-view (librsvg 2.34.0) completely fails to render the masks.

Works if the two masking objects are inside a group (i.e. masked with a group).
Using classes or a 'style' attribute doesn't make a difference.

tags: removed: css
Changed in inkscape:
status: New → Confirmed
~suv (suv-lp) wrote :

Forgot to add: all mentioned browsers render the SVG file identically, the only renderer that completely failed was rsvg. Inkscape "omits" the dot in the mask of the upper object.

EMF export not tested (only available on Windows).

~suv (suv-lp) wrote :

> export to EMF is even worse

Please file a separate report about EMF export, possibly with a screenshot illustrating the errors in the EMF file.
If the issue with EMF export is not limited to this particular file but masking in general, it could be related to Bug #649744 “emf wmf export clipping path issue” (export to EMF completely ignores the clipping path).

Alvin Penner (apenner) wrote :

attached is the emf file obtained with dev build 10255, on Windows XP.
this does not recognize the clipping paths, similar to Bug 649744

~suv (suv-lp) on 2011-12-07
tags: added: svg
~suv (suv-lp) wrote :

Also reported and discussed in bug #901198.

Setting bug importance to 'Medium' (compliance to the SVG specification is a major goal on the roadmap): even though Inkscape itself does not create such masks (it only uses the top-most (or bottom-most) object of a selection as mask), it should properly render externally created valid SVG files with masks like in the reported case(s).

Changed in inkscape:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers