Closed
Bug 393214
Opened 18 years ago
Closed 18 years ago
"clip-rule" with value "evenodd" attribute seems to be ignored
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: antoine, Unassigned)
Details
(Keywords: regression)
Attachments
(1 file)
454 bytes,
image/svg+xml
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a8pre) Gecko/2007082204 Minefield/3.0a8pre
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a8pre) Gecko/2007082204 Minefield/3.0a8pre
Using a clip path in SVG with the "clip-rule" attribute set to "evenodd" (not the default) seems to be ignored and the entire contents of the <clipPath> element are used to clip the target element.
Reproducible: Always
Steps to Reproduce:
1. define a "clipPath" element with several shapes partly overlapping
2. set clip-rule to be "evenodd"
3. apply the clip to an element
Actual Results:
The clipping region equals the union of all shapes in the clipPath element
Expected Results:
The clipping region equals the intersection of all shapes in the clipPath element
Reporter | ||
Comment 2•18 years ago
|
||
Comment 3•18 years ago
|
||
A regression range would be useful.
I think the new behavior is per specification - section 14.3.5 states: "When the 'clipPath' element contains multiple child elements, the silhouettes of the child elements are logically OR'd together to create a single silhouette which is then used to restrict the region onto which paint can be applied. Thus, a point is inside the clipping path if it is inside any of the children of the 'clipPath'."
Your testcase contains two nested rects, so the combined clipPath is the larger of the two rects.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•