aboutsummaryrefslogtreecommitdiff
path: root/tests/data/svg
diff options
context:
space:
mode:
authorViatrix2026-03-16 17:48:48 -0700
committerViatrix2026-03-16 17:53:39 -0700
commit90246c78b9b0a5c736c574d7d95159fbfe74c597 (patch)
treeca8696918acdf1913576cd5994989479cdce76a9 /tests/data/svg
parentfbcbb4eff55d0703f9fee526e5caea4744e931f7 (diff)
Clip-paths now work!
Diffstat (limited to 'tests/data/svg')
-rw-r--r--tests/data/svg/clip-path.svg24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/data/svg/clip-path.svg b/tests/data/svg/clip-path.svg
new file mode 100644
index 0000000..c3b6f7d
--- /dev/null
+++ b/tests/data/svg/clip-path.svg
@@ -0,0 +1,24 @@
+<svg width="300" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <clipPath id="slice" clipPathUnits="userSpaceOnUse">
+ <polyline points="25,25 50,50 25,75"/>
+ </clipPath>
+ <clipPath id="antislice" clipPathUnits="userSpaceOnUse">
+ <polyline points="125,25 150,50 125,75 175,75 175,25"/>
+ </clipPath>
+ <clipPath id="antislice2" clipPathUnits="userSpaceOnUse">
+ <polyline points="225,25 250,50 225,75 275,75 275,25"/>
+ </clipPath>
+ </defs>
+ <a xlink:href="http://example.com/1">
+ <rect x="25" y="25" width="50" height="50" clip-path="url(#slice)"/>
+ </a>
+ <a xlink:href="http://example.com/2" clip-path="url(#antislice)">
+ <rect x="130" y="30" width="40" height="40" stroke-width="6" stroke="lime"/>
+ </a>
+ <g clip-path="url(#antislice2)">
+ <a xlink:href="http://example.com/3">
+ <rect x="230" y="30" width="40" height="40"/>
+ </a>
+ </g>
+</svg>