Title: [277077] trunk/LayoutTests
Revision
277077
Author
[email protected]
Date
2021-05-06 02:44:37 -0700 (Thu, 06 May 2021)

Log Message

Re-import css/css-color & css/css-color-adjust WPT
https://bugs.webkit.org/show_bug.cgi?id=225438

Reviewed by Youenn Fablet.

LayoutTests/imported/w3c:

* resources/resource-files.json:
* web-platform-tests/css/css-color-adjust/META.yml: Added.
* web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub-expected.html: Added.
* web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub.html: Added.
* web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors-expected.txt: Added.
* web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors.html: Added.
* web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/w3c-import.log:
* web-platform-tests/css/css-color-adjust/w3c-import.log:
* web-platform-tests/css/css-color/color-function-parsing.html:
* web-platform-tests/css/css-color/color-function-parsing-expected.txt:
* web-platform-tests/css/css-color/color-mix-basic-001.tentative-expected.txt: Added.
* web-platform-tests/css/css-color/color-mix-basic-001.tentative.html: Added.
* web-platform-tests/css/css-color/predefined-014-expected.html: Removed.
* web-platform-tests/css/css-color/predefined-014.html: Removed.
* web-platform-tests/css/css-color/predefined-015-expected.html: Removed.
* web-platform-tests/css/css-color/predefined-015.html: Removed.
* web-platform-tests/css/css-color/w3c-import.log:

LayoutTests:

* TestExpectations:

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (277076 => 277077)


--- trunk/LayoutTests/ChangeLog	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/ChangeLog	2021-05-06 09:44:37 UTC (rev 277077)
@@ -1,5 +1,14 @@
 2021-05-06  Tim Nguyen  <[email protected]>
 
+        Re-import css/css-color & css/css-color-adjust WPT
+        https://bugs.webkit.org/show_bug.cgi?id=225438
+
+        Reviewed by Youenn Fablet.
+
+        * TestExpectations:
+
+2021-05-06  Tim Nguyen  <[email protected]>
+
         Re-import css/css-backgrounds WPTs
         https://bugs.webkit.org/show_bug.cgi?id=225408
 

Modified: trunk/LayoutTests/TestExpectations (277076 => 277077)


--- trunk/LayoutTests/TestExpectations	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/TestExpectations	2021-05-06 09:44:37 UTC (rev 277077)
@@ -4325,6 +4325,7 @@
 webkit.org/b/214455 imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background.html [ ImageOnlyFailure ]
 webkit.org/b/214455 imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-alpha.html [ ImageOnlyFailure ]
 webkit.org/b/214455 imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque.html [ ImageOnlyFailure ]
+webkit.org/b/214455 imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub.html [ ImageOnlyFailure ]
 webkit.org/b/214455 imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-visited-link-initial.html [ ImageOnlyFailure ]
 
 webkit.org/b/214456 imported/w3c/web-platform-tests/css/css-images/conic-gradient-angle.html [ ImageOnlyFailure ]
@@ -4619,10 +4620,6 @@
 webanimations/transform-property-and-transform-animation-with-delay-on-forced-layer.html [ Skip ]
 webanimations/translate-property-and-translate-animation-with-delay-on-forced-layer.html [ Skip ]
 
-# Unsupported css color() fallback feature
-webkit.org/b/220928 imported/w3c/web-platform-tests/css/css-color/predefined-014.html [ ImageOnlyFailure ] # Requires fallback (at parse time) support
-webkit.org/b/220928 imported/w3c/web-platform-tests/css/css-color/predefined-015.html [ ImageOnlyFailure ] # Requires fallback (at parse time) support (unclear if this makes sense)
-
 # CSS containment tests that fail
 imported/w3c/web-platform-tests/css/css-contain/contain-animation-001.html [ ImageOnlyFailure ]
 # webkit-ruby-text

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2021-05-06 09:44:37 UTC (rev 277077)
@@ -1,5 +1,30 @@
 2021-05-06  Tim Nguyen  <[email protected]>
 
+        Re-import css/css-color & css/css-color-adjust WPT
+        https://bugs.webkit.org/show_bug.cgi?id=225438
+
+        Reviewed by Youenn Fablet.
+
+        * resources/resource-files.json:
+        * web-platform-tests/css/css-color-adjust/META.yml: Added.
+        * web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub-expected.html: Added.
+        * web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub.html: Added.
+        * web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors-expected.txt: Added.
+        * web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors.html: Added.
+        * web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/w3c-import.log:
+        * web-platform-tests/css/css-color-adjust/w3c-import.log:
+        * web-platform-tests/css/css-color/color-function-parsing.html:
+        * web-platform-tests/css/css-color/color-function-parsing-expected.txt:
+        * web-platform-tests/css/css-color/color-mix-basic-001.tentative-expected.txt: Added.
+        * web-platform-tests/css/css-color/color-mix-basic-001.tentative.html: Added.
+        * web-platform-tests/css/css-color/predefined-014-expected.html: Removed.
+        * web-platform-tests/css/css-color/predefined-014.html: Removed.
+        * web-platform-tests/css/css-color/predefined-015-expected.html: Removed.
+        * web-platform-tests/css/css-color/predefined-015.html: Removed.
+        * web-platform-tests/css/css-color/w3c-import.log:
+
+2021-05-06  Tim Nguyen  <[email protected]>
+
         Re-import css/css-cascade WPT
         https://bugs.webkit.org/show_bug.cgi?id=225437
 

Modified: trunk/LayoutTests/imported/w3c/resources/resource-files.json (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/resources/resource-files.json	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/resources/resource-files.json	2021-05-06 09:44:37 UTC (rev 277077)
@@ -294,6 +294,9 @@
         "web-platform-tests/css/css-backgrounds/ttwf-css3background-border-style-shorthand.htm",
         "web-platform-tests/css/css-backgrounds/ttwf-css3background-border-style-values.htm",
         "web-platform-tests/css/css-backgrounds/ttwf-css3background-border-style.htm",
+        "web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-change-checkbox-notref.html",
+        "web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/support/dark-frame-alpha.html",
+        "web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/support/dark-frame-opaque.html",
         "web-platform-tests/css/css-color/t32-opacity-basic-0.6-a.xht",
         "web-platform-tests/css/css-color/t32-opacity-zorder-c.xht",
         "web-platform-tests/css/css-color/t421-rgb-hex3-expand-b.xht",

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-function-parsing-expected.txt (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-function-parsing-expected.txt	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-function-parsing-expected.txt	2021-05-06 09:44:37 UTC (rev 277077)
@@ -13,7 +13,6 @@
 PASS All components missing
 PASS Display P3 color
 PASS Different case for Display P3
-FAIL Unknown color space should fallback assert_equals: expected "color(unknown 1 2 3, red)" but got "rgb(0, 0, 0)"
 PASS sRGB color with negative component should clamp to 0
 PASS sRGB color with component > 1 should clamp
 PASS Display P3 color with negative component should clamp to 0

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-function-parsing.html (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-function-parsing.html	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-function-parsing.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -31,8 +31,6 @@
     testColorFunction("Display P3 color", "color(display-p3 0.6 0.7 0.8)", "color(display-p3 0.6 0.7 0.8)");
     testColorFunction("Different case for Display P3", "color(dIspLaY-P3 0.6 0.7 0.8)", "color(display-p3 0.6 0.7 0.8)");
 
-    testColorFunction("Unknown color space should fallback", "color(unknown 1 2 3, red)", "color(unknown 1 2 3, red)");
-
     testColorFunction("sRGB color with negative component should clamp to 0", "color(srgb -0.25 0.5 0.75)", "color(srgb 0 0.5 0.75)");
     testColorFunction("sRGB color with component > 1 should clamp", "color(srgb 0.25 1.5 0.75)", "color(srgb 0.25 1 0.75)");
     testColorFunction("Display P3 color with negative component should clamp to 0", "color(display-p3 0.5 -199 0.75)", "color(display-p3 0.5 0 0.75)");

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-basic-001.tentative-expected.txt (0 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-basic-001.tentative-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-basic-001.tentative-expected.txt	2021-05-06 09:44:37 UTC (rev 277077)
@@ -0,0 +1,9 @@
+
+FAIL From blue to red at 0.5 assert_equals: Colors should match for color-mix(in srgb, blue, red  50%) expected "rgb(128, 0, 128)" but got "color(srgb 0.5 0 0.5)"
+FAIL From blue to green at 0.5 assert_equals: Colors should match for color-mix(in srgb, blue, green  50%) expected "rgb(0, 64, 128)" but got "color(srgb 0 0.2509804 0.5)"
+FAIL From rgb(255, 0, 0, .2) to red at 0.5 assert_equals: Colors should match for color-mix(in srgb, rgb(255, 0, 0, .2), red  50%) expected "rgba(255, 0, 0, 0.6)" but got "color(srgb 1 0 0 / 0.6)"
+FAIL From blue to red at 0.9 assert_equals: Colors should match for color-mix(in srgb, blue, red  90%) expected "rgb(230, 0, 26)" but got "color(srgb 0.9 0 0.1)"
+FAIL From blue to red at 0 assert_equals: Colors should match for color-mix(in srgb, blue, red  0%) expected "rgb(0, 0, 255)" but got "color(srgb 0 0 1)"
+FAIL From currentColor to white at 0.5 assert_not_equals: Should parse color-mix(in srgb, currentColor, white  50%) got disallowed value ""
+FAIL From currentColor to rgba(0, 0, 0, .5) at 0.5 assert_not_equals: Should parse color-mix(in srgb, currentColor, rgba(0, 0, 0, .5)  50%) got disallowed value ""
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-basic-001.tentative.html (0 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-basic-001.tentative.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/color-mix-basic-001.tentative.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -0,0 +1,67 @@
+<!doctype html>
+<!-- Tentative pending potential syntax changes in https://github.com/w3c/csswg-drafts/issues/6066 -->
+<link rel="help" href=""
+<link rel="help" href=""
+<link rel="author" href="" title="Emilio Cobos Álvarez">
+<link rel="author" href="" title="Mozilla">
+<script src=""
+<script src=""
+<style>
+div { color: black }
+</style>
+<div id="test"></div>
+<div id="ref"></div>
+<script>
+const TEST_CASES = [
+  ["blue", "red"],
+  ["blue", "green"],
+  ["rgb(255, 0, 0, .2)", "red"],
+  ["blue", "red", 0.9],
+  ["blue", "red", 0],
+  ["currentColor", "white"],
+  ["currentColor", "rgba(0, 0, 0, .5)"],
+];
+
+const testElement = document.getElementById("test");
+const refElement = document.getElementById("ref");
+const testStyle = getComputedStyle(testElement);
+const refStyle = getComputedStyle(refElement);
+
+let animation = null;
+
+for (let [from, to, animationProgress] of TEST_CASES) {
+  const animationProgressExplicit = animationProgress !== undefined;
+  animationProgress = animationProgressExplicit ? animationProgress : 0.5;
+  test(function() {
+    // Set up the ref.
+    if (animation) {
+      animation.cancel();
+    }
+    animation = refElement.animate({
+      backgroundColor: [from, to],
+    }, { duration: 1000 });
+    animation.pause();
+    animation.currentTime = 1000 * animationProgress;
+
+    let progress = ` ${animationProgress * 100}%`;
+    let _oneMinusProgress_ = ` ${(1 - animationProgress) * 100}%`;
+    let values = [
+      `color-mix(in srgb, ${from}, ${to} ${progress})`,
+      `color-mix(in srgb, ${from} ${oneMinusProgress}, ${to})`,
+      `color-mix(in srgb, ${from} ${oneMinusProgress}, ${to} ${progress})`,
+    ];
+
+    if (animationProgress == 0.5) {
+      values.push(`color-mix(in srgb, ${from}, ${to})`);
+    }
+
+    for (let value of values) {
+      testElement.style.backgroundColor = "";
+      testElement.style.backgroundColor = value;
+
+      assert_not_equals(testElement.style.backgroundColor, "", "Should parse " + value);
+      assert_equals(testStyle.backgroundColor, refStyle.backgroundColor, "Colors should match for " + value);
+    }
+  }, `From ${from} to ${to} at ${animationProgress}`);
+}
+</script>

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-014-expected.html (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-014-expected.html	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-014-expected.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<title>Green square #009900 reference</title>
-<style>
-    .test { background-color: #009900; width: 12em; height: 12em;}
-</style>
-<body>
-    <p>Test passes if you see a green square, and no red.</p>
-    <div class="test"></div>
-</body>

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-014.html (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-014.html	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-014.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<title>CSS Color 4: predefined colorspaces, fallback</title>
-<link rel="author" title="Chris Lilley" href=""
-<link rel="help" href=""
-<link rel="match" href=""
-<meta name="assert" content="Color function with invalid colorspace, fallback matches sRGB #009900">
-<style>
-    .test { background-color: red; width: 12em; height: 6em; margin-top:0}
-    .ref { background-color: #009900; width: 12em; height: 6em; margin-bottom: 0}
-    .test {background-color: color(banana 0.1 0.2 0.3, #009900)}
-</style>
-<body>
-    <p>Test passes if you see a green square, and no red.</p>
-    <p class="ref"> </p>
-    <p class="test"> </p>
-</body>
\ No newline at end of file

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-015-expected.html (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-015-expected.html	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-015-expected.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<title>Green square #009900 reference</title>
-<style>
-    .test { background-color: #009900; width: 12em; height: 12em;}
-</style>
-<body>
-    <p>Test passes if you see a green square, and no red.</p>
-    <div class="test"></div>
-</body>

Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-015.html (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-015.html	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-015.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<title>CSS Color 4: predefined colorspaces, fallback</title>
-<link rel="author" title="Chris Lilley" href=""
-<link rel="help" href=""
-<link rel="match" href=""
-<meta name="assert" content="Color function with colorspace which matches sRGB #009900, red fallback">
-<style>
-    .test { background-color: red; width: 12em; height: 6em; margin-top:0}
-    .ref { background-color: #009900; width: 12em; height: 6em; margin-bottom: 0}
-    .test {background-color: color(display-p3 0.26374 0.59085 0.16434, red)}
-</style>
-<body>
-    <p>Test passes if you see a green square, and no red.</p>
-    <p class="ref"> </p>
-    <p class="test"> </p>
-</body>
\ No newline at end of file

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/w3c-import.log (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/w3c-import.log	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color/w3c-import.log	2021-05-06 09:44:37 UTC (rev 277077)
@@ -175,10 +175,6 @@
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-012.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-013-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-013.html
-/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-014-expected.html
-/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-014.html
-/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-015-expected.html
-/LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-015.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-016-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color/predefined-016.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color/prophoto-rgb-001-expected.html

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/META.yml (0 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/META.yml	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/META.yml	2021-05-06 09:44:37 UTC (rev 277077)
@@ -0,0 +1 @@
+spec: https://drafts.csswg.org/css-color-adjust/

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub-expected.html (0 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub-expected.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub-expected.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -0,0 +1,6 @@
+<!doctype html>
+<style>
+  :root { color-scheme: dark }
+  p { color: green }
+</style>
+<p>This text should be green and the background should be dark opaque.</p>

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub.html (0 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -0,0 +1,19 @@
+<!doctype html>
+<title>CSS Color Adjustment Test: Frames with a dark color-scheme should get an opaque background when embedding element and embedded root color-schemes do not match (cross origin)</title>
+<link rel="help" href=""
+<link rel="match" href=""
+<style>
+  html, body {
+    margin: 0;
+    height: 100%;
+  }
+  iframe {
+    margin: 0;
+    border: 0;
+    padding: 0;
+    width: 100%;
+    height: 100%;
+    display: block;
+  }
+</style>
+<iframe src=""

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors-expected.txt (0 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors-expected.txt	2021-05-06 09:44:37 UTC (rev 277077)
@@ -0,0 +1,3 @@
+
+PASS Check that the system colors are properly affected by the color-scheme.
+

Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors.html (0 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors.html	                        (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors.html	2021-05-06 09:44:37 UTC (rev 277077)
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="help" href=""
+<script src=""
+<script src=""
+<style>
+  #dark { color-scheme: dark }
+  #light { color-scheme: light }
+  .canvas { color: CanvasText; background-color: Canvas; }
+</style>
+<div id="dark" class="canvas"></div>
+<div id="light" class="canvas"></div>
+<script>
+  test(() => {
+    assert_not_equals(getComputedStyle(light).color, getComputedStyle(dark).color);
+    assert_not_equals(getComputedStyle(light).backgroundColor, getComputedStyle(dark).backgroundColor);
+  }, "Check that the system colors are properly affected by the color-scheme.");
+</script>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/w3c-import.log (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/w3c-import.log	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/w3c-import.log	2021-05-06 09:44:37 UTC (rev 277077)
@@ -21,10 +21,13 @@
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-alpha-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-alpha.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-cross-origin.sub.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background-mismatch-opaque.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-iframe-background.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-root-background.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-system-colors.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-visited-link-initial-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/color-scheme-visited-link-initial.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/rendering/dark-color-scheme/svg-as-image.html

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/w3c-import.log (277076 => 277077)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/w3c-import.log	2021-05-06 09:17:02 UTC (rev 277076)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/w3c-import.log	2021-05-06 09:44:37 UTC (rev 277077)
@@ -14,4 +14,5 @@
 None
 ------------------------------------------------------------------------
 List of files:
+/LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/META.yml
 /LayoutTests/imported/w3c/web-platform-tests/css/css-color-adjust/inheritance.html
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to