summaryrefslogtreecommitdiff
path: root/tests/fixtures
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2021-12-21 09:19:47 -0700
committerMarge Bot <marge-bot@gnome.org>2022-01-07 17:07:12 +0000
commitf9da4f2a762b8d78366eca5cab90480787485eb4 (patch)
treeee67690ba18adedd4f2d12765213d27541f29d70 /tests/fixtures
parentbafd278b2647bd3c448a6afb8e0c54a4a6162006 (diff)
downloadlibrsvg-f9da4f2a762b8d78366eca5cab90480787485eb4.tar.gz
Add test cases for display:none and visibility:hidden
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/647>
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/text/display-none-ref.svg4
-rw-r--r--tests/fixtures/text/display-none.svg5
-rw-r--r--tests/fixtures/text/visibility-hidden-ref.svg5
-rw-r--r--tests/fixtures/text/visibility-hidden-x-attr.svg4
-rw-r--r--tests/fixtures/text/visibility-hidden.svg5
5 files changed, 23 insertions, 0 deletions
diff --git a/tests/fixtures/text/display-none-ref.svg b/tests/fixtures/text/display-none-ref.svg
new file mode 100644
index 00000000..23e7f9b6
--- /dev/null
+++ b/tests/fixtures/text/display-none-ref.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
+ <text style="font: 5px Ahem;" x="5" y="10">X</text>
+ <text style="font: 5px Ahem;" x="5" y="25">XX</text>
+</svg> \ No newline at end of file
diff --git a/tests/fixtures/text/display-none.svg b/tests/fixtures/text/display-none.svg
new file mode 100644
index 00000000..e5e31689
--- /dev/null
+++ b/tests/fixtures/text/display-none.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
+ <text style="font: 5px Ahem;" x="5" y="10">X<a style="display:none">X</a><tspan style="display:none">X</tspan></text>
+ <text style="font: 5px Ahem;" x="5" y="25">X<tspan><a style="display:none">X</a><tspan style="display:none">X<tspan style="display:inline" x="40">X</tspan><tspan style="display:block" x="45">X</tspan></tspan>X</tspan></text>
+ <text style="font: 5px Ahem; display: none" x="5" y="40">XXXXXX</text>
+</svg> \ No newline at end of file
diff --git a/tests/fixtures/text/visibility-hidden-ref.svg b/tests/fixtures/text/visibility-hidden-ref.svg
new file mode 100644
index 00000000..162bf42e
--- /dev/null
+++ b/tests/fixtures/text/visibility-hidden-ref.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
+ <text style="font: 5px Ahem;" x="5" y="10">X</text>
+ <text style="font: 5px Ahem;" x="5" y="25">X</text>
+ <text style="font: 5px Ahem;" x="20" y="25">X</text>
+</svg> \ No newline at end of file
diff --git a/tests/fixtures/text/visibility-hidden-x-attr.svg b/tests/fixtures/text/visibility-hidden-x-attr.svg
new file mode 100644
index 00000000..6007de95
--- /dev/null
+++ b/tests/fixtures/text/visibility-hidden-x-attr.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
+ <text style="font: 5px Ahem;" x="5" y="10">X<tspan x="10" style="visibility:hidden">X</tspan><tspan style="visibility:hidden"><tspan x="15">X</tspan></tspan></text>
+ <text style="font: 5px Ahem;" x="5" y="25">X<tspan><tspan x="10" y="25" style="visibility:hidden">X</tspan><tspan x="15" style="visibility:hidden">X</tspan><tspan x="20">X</tspan></tspan></text>
+</svg> \ No newline at end of file
diff --git a/tests/fixtures/text/visibility-hidden.svg b/tests/fixtures/text/visibility-hidden.svg
new file mode 100644
index 00000000..b39312f5
--- /dev/null
+++ b/tests/fixtures/text/visibility-hidden.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
+ <text style="font: 5px Ahem;" x="5" y="10">X<a style="visibility:hidden">X</a><tspan style="visibility:hidden">X</tspan></text>
+ <text style="font: 5px Ahem;" x="5" y="25">X<tspan><a style="visibility:hidden">X</a><tspan style="visibility:hidden">X</tspan>X</tspan></text>
+ <text style="font: 5px Ahem; visibility: hidden" x="5" y="40">XXXXXX</text>
+</svg> \ No newline at end of file