Closed
Bug 952858
Opened 11 years ago
Closed 11 years ago
svg clip-path(s) intersection bug
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 915072
People
(Reporter: iliribur, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.2; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release)
Build ID: 20131205075310
Steps to reproduce:
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:svg="http://www.w3.org/2000/svg"
id="root">
<clipPath id="clip1">
<rect x="040.0" y="076.5" width="70.0" height="25.0"/>
</clipPath>
<clipPath id="clip2" clip-path="url(#clip1)">
<rect x="020.0" y="065.5" width="70.0" height="25.0"/>
</clipPath>
<clipPath id="clip3" clip-path="url(#clip2)">
<rect x="060.0" y="065.5" width="70.0" height="25.0"/>
</clipPath>
<g>
<rect x="020.0" y="065.5" width="70.0" height="25.0" fill="red" opacity="0.5"/>
<rect x="060.0" y="065.5" width="70.0" height="25.0" fill="green" opacity="0.5"/>
<rect x="040.0" y="076.5" width="70.0" height="25.0" fill="blue" opacity="0.5"/>
</g>
<path stroke="Red" stroke-width="5.5" fill="with" d="M 098.0 099.0 041.0 050.0" clip-path="url(#clip3)"/>
</svg>
Actual results:
Red stroked path is not visible after the 3rd clip-path intersection. It becomes visible by changing clip-path attribute to "url(#clip2)" for red stroked path. Obviously, clip-path intersection works only up to level 2.
Expected results:
Expected result is stroked path visble after the 3rd intersection, which is true for Opera (12.16) and IE (10.0.9200.16750). I was surprised to see this example working on Safari (WebKit) for iPhone/iPod 1st gen (iOS 3.3.x)!
Actually, old Safari mobile is doing union here, not intersection. I assume intersection is working properly for a new WebKit based browsers.
Updated•11 years ago
|
Component: Untriaged → SVG
Product: Firefox → Core
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•