From f6b88096240e877f8e7d49f4f275be114dc8c3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 24 May 2022 09:57:55 +0000 Subject: [PATCH] Add some tests for color-mix() and currentColor. This adds a test that passes and a test that doesn't. The first one checks that we inherit currentColor correctly. The second one checks that currentColor is mixed in the right color-space (bug 1770829). Differential Revision: https://phabricator.services.mozilla.com/D147107 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1770830 gecko-commit: 658d0c192f719ca04bc7d7c81d3b9fa431d43607 gecko-reviewers: boris --- .../color-mix-currentcolor-001-ref.html | 11 +++++++++ css/css-color/color-mix-currentcolor-001.html | 23 +++++++++++++++++++ .../color-mix-currentcolor-002-ref.html | 11 +++++++++ css/css-color/color-mix-currentcolor-002.html | 22 ++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 css/css-color/color-mix-currentcolor-001-ref.html create mode 100644 css/css-color/color-mix-currentcolor-001.html create mode 100644 css/css-color/color-mix-currentcolor-002-ref.html create mode 100644 css/css-color/color-mix-currentcolor-002.html diff --git a/css/css-color/color-mix-currentcolor-001-ref.html b/css/css-color/color-mix-currentcolor-001-ref.html new file mode 100644 index 00000000000000..ba9b8b9622fd49 --- /dev/null +++ b/css/css-color/color-mix-currentcolor-001-ref.html @@ -0,0 +1,11 @@ + + +
diff --git a/css/css-color/color-mix-currentcolor-001.html b/css/css-color/color-mix-currentcolor-001.html new file mode 100644 index 00000000000000..0f502d22ec85e4 --- /dev/null +++ b/css/css-color/color-mix-currentcolor-001.html @@ -0,0 +1,23 @@ + + + +currentColor is inherited correctly in color-mix() + + + + +
+
+
diff --git a/css/css-color/color-mix-currentcolor-002-ref.html b/css/css-color/color-mix-currentcolor-002-ref.html new file mode 100644 index 00000000000000..64e60fbf291285 --- /dev/null +++ b/css/css-color/color-mix-currentcolor-002-ref.html @@ -0,0 +1,11 @@ + + +
diff --git a/css/css-color/color-mix-currentcolor-002.html b/css/css-color/color-mix-currentcolor-002.html new file mode 100644 index 00000000000000..fb050688379c87 --- /dev/null +++ b/css/css-color/color-mix-currentcolor-002.html @@ -0,0 +1,22 @@ + + +currentColor is mixed with the correct color-space in color-mix() + + + + +
+
+