clip-path render bug, ignores clip-rule="evenodd"

Bug #564080 reported by Mo DeJong
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Krzysztof Kosinski

Bug Description

Greetings

I have noticed that the clip-path option is not handled quite right in Inkscape. It works correctly when two <rect> objects appear inside one <clipPath> object with the default clip-rule="evenodd" option (see ClipPath4.svg in the attachment). But, in the case where a single <path> object contains 2 subpaths that overlap, the clip-rule should be applied so that the proper "XOR fill" is done on the two paths. The result of ClipPath5.svg shows the bug in Inkscape, it should render two overlapping squares, but the parts that overlap should not be visible. ClipPath5.svg works correctly in firefox and it matches up with the SVG specs, so it looks like Inkscape is simply not applying the clip-rule property when doing the fill before setting the clip.

Tags: clipping
Revision history for this message
Mo DeJong (mosesdejong) wrote :
su_v (suv-lp)
tags: added: clipping
Revision history for this message
su_v (suv-lp) wrote :
Changed in inkscape:
status: New → Confirmed
Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

The SVG test suite examples renders correctly now.

As far as I understand the specification, having two rects in the clipping path with clip-rule: evenodd should NOT render a hole. The property applies to individual paths. Therefore the former rendering of ClipPath4.svg was wrong.

ClipPath5.svg now correctly renders a hole, and that has been the case for some time now in the trunk.

Changed in inkscape:
importance: Undecided → Medium
assignee: nobody → Krzysztof Kosinski (tweenk)
status: Confirmed → Fix Committed
milestone: none → 0.49
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
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.