From e5da34dd3c0bf1d715ccc79e7a8dc2b98a22fbae Mon Sep 17 00:00:00 2001 From: Alison Maher Date: Fri, 21 Feb 2020 21:59:57 +0000 Subject: [PATCH] Bug 1616166 [wpt PR 21846] - Don't adjust SVG text in forced colors mode, a=testonly Automatic update from web-platform-tests Don't adjust SVG text in forced colors mode As per the following spec resolution, SVG text no longer should be adjusted in forced colors mode by default. https://github.com/w3c/csswg-drafts/issues/3855 Bug: 970285 Change-Id: I11a785f64ca6f7e7840b17d6b59d4ce9b9f8b4e1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2055431 Reviewed-by: Rune Lillesveen Commit-Queue: Alison Maher Cr-Commit-Position: refs/heads/master@{#743163} -- wpt-commits: ae1a412839f35155c7b697bcc022e8d2d094dc34 wpt-pr: 21846 --- .../forced-colors-mode-18-ref.html | 36 +++++++++++++++++++ .../forced-colors-mode-18.html | 33 +++++++++++++++++ .../forced-colors-mode-18.tentative-ref.html | 28 --------------- .../forced-colors-mode-18.tentative.html | 27 -------------- .../forced-colors-mode-26-ref.html | 15 ++++++++ .../forced-colors-mode-26.html | 20 +++++++++++ .../forced-colors-mode-26.tentative-ref.html | 16 --------- .../forced-colors-mode-26.tentative.html | 23 ------------ 8 files changed, 104 insertions(+), 94 deletions(-) create mode 100644 testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18-ref.html create mode 100644 testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.html delete mode 100644 testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.tentative-ref.html delete mode 100644 testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.tentative.html create mode 100644 testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26-ref.html create mode 100644 testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.html delete mode 100644 testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.tentative-ref.html delete mode 100644 testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.tentative.html diff --git a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18-ref.html b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18-ref.html new file mode 100644 index 0000000000000..a1701e3fdac84 --- /dev/null +++ b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18-ref.html @@ -0,0 +1,36 @@ + + +Forced colors mode - svg. + Only foreignObject svg elements should have styles + overridden in forced colors mode. + + + + + + This text should have a red fill and blue stroke color in + forced colors mode. + + + +
+ This text should be orange in forced colors mode due to inheritance. +
+ + + +
+
+ + + +
+ This text should be CanvasText in forced colors mode. +
+
+
+ diff --git a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.html b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.html new file mode 100644 index 0000000000000..435b9e4326f9a --- /dev/null +++ b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.html @@ -0,0 +1,33 @@ + + +Forced colors mode - svg. + Only foreignObject svg elements should have styles + overridden in forced colors mode. + + + + + + + This text should have a red fill and blue stroke color in + forced colors mode. + + + +
+ This text should be orange in forced colors mode due to inheritance. +
+ + + +
+
+ + + +
+ This text should be CanvasText in forced colors mode. +
+
+
+ diff --git a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.tentative-ref.html b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.tentative-ref.html deleted file mode 100644 index 34eba583caa92..0000000000000 --- a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.tentative-ref.html +++ /dev/null @@ -1,28 +0,0 @@ - - -Forced colors mode - fill and stroke reference. - Only text and foreignObject svg elements should have fill and stroke - overridden in forced colors mode. - - - - - - This text should have a WindowText fill and transparent stroke color in - forced colors mode. - - - -
- This text should be WindowText color in forced colors mode. -
- - - -
-
- diff --git a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.tentative.html b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.tentative.html deleted file mode 100644 index 307420af9fc77..0000000000000 --- a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-18.tentative.html +++ /dev/null @@ -1,27 +0,0 @@ - - -Forced colors mode - fill and stroke. - Only text and foreignObject svg elements should have fill and stroke - overridden in forced colors mode. - - - - - - - - This text should have a WindowText fill and transparent stroke color in - forced colors mode. - - - -
- This text should be WindowText color in forced colors mode. -
- - - -
-
- diff --git a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26-ref.html b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26-ref.html new file mode 100644 index 0000000000000..39caee40b52ac --- /dev/null +++ b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26-ref.html @@ -0,0 +1,15 @@ + + +Forced colors mode - fill/stroke. + + + + The triangle below should be currentColor when forced colors mode. + + + + diff --git a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.html b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.html new file mode 100644 index 0000000000000..a9aa59013217e --- /dev/null +++ b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.html @@ -0,0 +1,20 @@ + + +Forced colors mode - fill/stroke. + + + + + +
+ The triangle below should be currentColor when forced colors mode. + + + +
+ diff --git a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.tentative-ref.html b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.tentative-ref.html deleted file mode 100644 index f551a43429065..0000000000000 --- a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.tentative-ref.html +++ /dev/null @@ -1,16 +0,0 @@ - - -Forced colors mode - fill/stroke inheritance. - Tests that fill and stroke colors are properly inherited from parent elements. - - - - The triangle below should be red when forced colors mode is enabled and disabled. - - - - diff --git a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.tentative.html b/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.tentative.html deleted file mode 100644 index ac21cae23805f..0000000000000 --- a/testing/web-platform/tests/forced-colors-mode/forced-colors-mode-26.tentative.html +++ /dev/null @@ -1,23 +0,0 @@ - - -Forced colors mode - fill/stroke inheritance. - Tests that fill and stroke colors are properly inherited from parent elements. - - - - - -
- The triangle below should be red when forced colors mode is enabled and disabled. - - - - -
-