Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / clip-path / clipper-placement-issue.svg
blob039d7b2c526bb1f03dcb7686ab76b78db0dd14ea
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3 <!-- This tests some filter placement oddities caused by rounding
4 (https://bugs.webkit.org/show_bug.cgi?id=73643).
5 When opened, the test should not show any red outlines around the boxes. -->
7 <defs>
8 <g id="paths">
9 <path d="M10 10 h20 v20 h-20 v-20 m1 1 v18 h18 v-18 h-18"/>
10 <rect x="19" y="19" width="2" height="2" />
12 <rect x="5.51" y="0.51" width="2" height="32.3" fill="white"/>
13 <rect x="35.4" y="0.51" width="2" height="32.3" fill="white"/>
14 </g>
16 <mask id="mask">
17 <use xlink:href="#paths" fill="white" x="60" />
18 </mask>
20 <clipPath id="clipper">
21 <!-- clipPath doesn't like use, so we copy the paths here. -->
22 <path d="M40 10 h20 v20 h-20 v-20 m1 1 v18 h18 v-18 h-18"/>
23 <rect x="49" y="19" width="2" height="2" />
25 <rect x="35.51" y="0.51" width="2" height="32.3" />
26 <rect x="65.4" y="0.51" width="2" height="32.3" />
27 </clipPath>
29 </defs>
31 <g>
32 <use xlink:href="#paths" fill="green" />
33 </g>
35 <g clip-path="url(#clipper)">
36 <rect fill="red" x="38" y="8" width="24" height="24" />
37 <use xlink:href="#paths" fill="green" x="30" />
38 </g>
40 <g mask="url(#mask)">
41 <rect fill="red" x="68" y="8" width="24" height="24" />
42 <use xlink:href="#paths" fill="green" x="60" />
43 </g>
45 </svg>