librsvg source for verification 2026-05-22
This commit is contained in:
16
rsvg/tests/fixtures/reftests/clip-path-use-transform-element-transform.svg
vendored
Normal file
16
rsvg/tests/fixtures/reftests/clip-path-use-transform-element-transform.svg
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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>
|
||||
|
After Width: | Height: | Size: 571 B |
Reference in New Issue
Block a user