blob: 505df21f66061a9b8e8033ddeeb05889d53e5f64 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<rect width="50" height="50" id="rect"/>
<use id="use" xlink:href="#rect"/>
<clipPath id="clip">
<use xlink:href="#use" />
</clipPath>
</defs>
<rect width="100" height="100" fill="green" />
<g clip-path="url(#clip)">
<rect width="100" height="100" fill="red" />
</g>
<text x="10" y="120">The graphic above should show a 100x100 green rectangle.</text>
<text x="10" y="140">The red rectangle should not show since it uses a clipping path that uses an indirect reference.</text>
</svg>