blob: 8d5c3dcf29f7cdcd83b3035bc714d9696e0073c7 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<rect id="rect" width="100" height="100" />
<clipPath id="clip">
<use xlink:href="#rect" />
</clipPath>
</defs>
<g clip-path="url(#clip)">
<rect width="200" height="200" fill="red" />
<rect width="100" height="100" fill="green" />
</g>
<text x="10" y="120">The graphic above uses a 100x100 clipPath referencing a rectangle using use.</text>
<text x="10" y="140">It should clip the 200x200 red rectangle out and leave a 100x100 green rectangle. Bug 16557. </text>
</svg>