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

15 lines
532 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 preserves the referenced element's transform -->
<defs>
<rect id="rect" x="0" y="0" width="10" height="10" transform="translate(30 30) scale(4 4)"/>
<clipPath id="clip1">
<use href="#rect"/>
</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>