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