From 59b746f013f60050b91cb5f6f8dd4a96c47f380e Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 27 Jul 2024 12:47:28 +0200 Subject: Add SVG currentColor test --- test/html/Makefile.am | 1 + test/html/render/svg-current-color.html | 29 +++++++ test/html/render/svg-current-color.png | Bin 0 -> 11451 bytes test/html/render/svg-current-color.ref.html | 29 +++++++ test/html/render/svg-current-color.svg | 114 ++++++++++++++++++++++++++++ 5 files changed, 173 insertions(+) create mode 100644 test/html/render/svg-current-color.html create mode 100644 test/html/render/svg-current-color.png create mode 100644 test/html/render/svg-current-color.ref.html create mode 100644 test/html/render/svg-current-color.svg (limited to 'test') diff --git a/test/html/Makefile.am b/test/html/Makefile.am index 4e55d8f8..80cbcef9 100644 --- a/test/html/Makefile.am +++ b/test/html/Makefile.am @@ -30,6 +30,7 @@ TESTS = \ render/min-width-html.html \ render/min-width-nested-div.html \ render/span-padding.html \ + render/svg-current-color.html \ render/table-max-width.html \ render/table-missing-width-in-one-column.html \ render/table-td-width-percent-img.html \ diff --git a/test/html/render/svg-current-color.html b/test/html/render/svg-current-color.html new file mode 100644 index 00000000..a8a03de5 --- /dev/null +++ b/test/html/render/svg-current-color.html @@ -0,0 +1,29 @@ + + + + Test SVG image with currentColor property + + + +
+

The following SVG image contains two elements with the + currentColor specification in fill and stroke, respectively. + This special color maps to the same value for the color of the image + element. These values are controlled by the CSS style of the page.

+

You should see a darkred background around the image (like this text + color) not a black background. You should also see a inner circle + in darkred not black.

+ +
+ + diff --git a/test/html/render/svg-current-color.png b/test/html/render/svg-current-color.png new file mode 100644 index 00000000..3e4a9f96 Binary files /dev/null and b/test/html/render/svg-current-color.png differ diff --git a/test/html/render/svg-current-color.ref.html b/test/html/render/svg-current-color.ref.html new file mode 100644 index 00000000..3fd13938 --- /dev/null +++ b/test/html/render/svg-current-color.ref.html @@ -0,0 +1,29 @@ + + + + Test SVG image with currentColor property + + + +
+

The following SVG image contains two elements with the + currentColor specification in fill and stroke, respectively. + This special color maps to the same value for the color of the image + element. These values are controlled by the CSS style of the page.

+

You should see a darkred background around the image (like this text + color) not a black background. You should also see a inner circle + in darkred not black.

+ +
+ + diff --git a/test/html/render/svg-current-color.svg b/test/html/render/svg-current-color.svg new file mode 100644 index 00000000..e46692cf --- /dev/null +++ b/test/html/render/svg-current-color.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + -- cgit v1.2.3