[librsvg: 2/3] tests: add reftest for 667




commit 124a31bcf64109957199caf5afd301719878ffbf
Author: Paolo Borelli <pborelli gnome org>
Date:   Thu Dec 31 18:45:40 2020 +0100

    tests: add reftest for 667

 .../reftests/bugs/667-tspan-visibility-ref.png     | Bin 0 -> 1766 bytes
 .../reftests/bugs/667-tspan-visibility.svg         |  26 +++++++++++++++++++++
 2 files changed, 26 insertions(+)
---
diff --git a/tests/fixtures/reftests/bugs/667-tspan-visibility-ref.png 
b/tests/fixtures/reftests/bugs/667-tspan-visibility-ref.png
new file mode 100644
index 00000000..87de44f7
Binary files /dev/null and b/tests/fixtures/reftests/bugs/667-tspan-visibility-ref.png differ
diff --git a/tests/fixtures/reftests/bugs/667-tspan-visibility.svg 
b/tests/fixtures/reftests/bugs/667-tspan-visibility.svg
new file mode 100644
index 00000000..7919fab3
--- /dev/null
+++ b/tests/fixtures/reftests/bugs/667-tspan-visibility.svg
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg"; version="1.1">
+  <g>
+    <!-- text and tspans all visible -->
+    <text x="10" y="10" font-family="sans" font-size="12">
+      foo 
+      <tspan>bar</tspan>
+      <tspan>baz</tspan>
+    </text>
+
+    <!-- tspan with display none -->
+    <text x="10" y="50" font-family="sans" font-size="12">
+      foo 
+      <tspan display="none">bar</tspan>
+      <tspan>baz</tspan>
+    </text>
+
+    <!-- tspan with visibility hidden -->
+    <text x="10" y="100" font-family="sans" font-size="12">
+      foo 
+      <tspan visibility="hidden">bar</tspan>
+      <tspan>baz</tspan>
+    </text>
+
+  </g>
+</svg>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]