aboutsummaryrefslogtreecommitdiff
path: root/tests/data/svg/image.svg
diff options
context:
space:
mode:
authorViatrix2026-03-12 12:57:41 -0700
committerViatrix2026-03-12 12:57:41 -0700
commit318a84508163ad786f12ee72d01b1b15d3295f73 (patch)
tree72281618de86c9596ca481359c6684020a4d59e1 /tests/data/svg/image.svg
parent583220acca483e567553851815d3563bec7468f6 (diff)
Added image test case and adjusted code to pass it.
Removed rect test case since it was getting redundant.
Diffstat (limited to 'tests/data/svg/image.svg')
-rw-r--r--tests/data/svg/image.svg6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/data/svg/image.svg b/tests/data/svg/image.svg
new file mode 100644
index 0000000..e0d62d4
--- /dev/null
+++ b/tests/data/svg/image.svg
@@ -0,0 +1,6 @@
+<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <!-- Transparent areas of the image should remain part of the link. -->
+ <a xlink:href="http://example.com">
+ <image x="25" y="25" width="50" height="50" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAQAAADYv8WvAAAADUlEQVR42mMAgv9gBAAJAQH/66EXCgAAAABJRU5ErkJggg==" image-rendering="optimizeSpeed"/>
+ </a>
+</svg>