Files
librsvg/rsvg/tests/fixtures/reftests/clip-path-use-transform-element-transform.svg

17 lines
571 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
<!-- Test that a <use> inside clipPath composes its transform with the referenced
element's correctly.
-->
<defs>
<rect id="rect" x="0" y="0" width="10" height="10" transform="scale(4 4)"/>
<clipPath id="clip1">
<use href="#rect" transform="translate(30 30)"/>
</clipPath>
</defs>
<rect width="100%" height="100%" fill="white"/>
<path id="foo" d="M20,20 h40 v80 h40 v-40 h-80 Z" fill="#00ff00" clip-path="url(#clip1)"/>
</svg>