[librsvg: 4/5] Add test for paint-order for text elements
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 4/5] Add test for paint-order for text elements
- Date: Fri, 2 Jul 2021 23:40:37 +0000 (UTC)
commit 3381ef01ed2f21a5bac2390be02aae7f1baf4ae1
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jul 2 13:31:52 2021 -0500
Add test for paint-order for text elements
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/560>
tests/fixtures/reftests/svg2/text-paint-order-ref.png | Bin 0 -> 23527 bytes
tests/fixtures/reftests/svg2/text-paint-order.svg | 12 ++++++++++++
2 files changed, 12 insertions(+)
---
diff --git a/tests/fixtures/reftests/svg2/text-paint-order-ref.png
b/tests/fixtures/reftests/svg2/text-paint-order-ref.png
new file mode 100644
index 00000000..e1133f1b
Binary files /dev/null and b/tests/fixtures/reftests/svg2/text-paint-order-ref.png differ
diff --git a/tests/fixtures/reftests/svg2/text-paint-order.svg
b/tests/fixtures/reftests/svg2/text-paint-order.svg
new file mode 100644
index 00000000..0bdc3146
--- /dev/null
+++ b/tests/fixtures/reftests/svg2/text-paint-order.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="600" height="200">
+ <defs>
+ <text id="hello" style='font: bold 80px sans-serif;' stroke-width="8">
+ <tspan x="10" y="80" stroke="green" fill="midnightblue">Hello</tspan>
+ <tspan x="250" y="80" stroke="lime" fill="orange">World!</tspan>
+ </text>
+ </defs>
+
+ <use href="#hello" style="paint-order: normal;"/>
+ <use href="#hello" style="paint-order: stroke fill;" transform="translate(0, 100)"/>
+</svg>
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]