summaryrefslogtreecommitdiffstats
path: root/svgio/qa/cppunit/data/ClipPathUsingClipPath.svg
blob: 5eaa7928cb852f9a9c5089683e35e216c9f55a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>

<clipPath id="clip1">
    <polygon id="clip1Shape" points="100,10 40,180 190,60 10,60 160,180 100,10" stroke="blue" />
</clipPath>

<clipPath id="clip2">
    <circle id="clip2Shape" cx="100" cy="100" r="65" />
</clipPath>


<clipPath id="clipIntersection" clip-path="url(#clip1)">
    <use x="0" y="0" width="200" height="200" xlink:href="#clip2Shape" />
</clipPath>

</defs>

<rect x="10" y="10" width="180" height="180" fill="red"
    clip-path="url(#clipIntersection)" transform="translate(200)" />

</svg>