Title: [287712] trunk
Revision
287712
Author
[email protected]
Date
2022-01-06 12:21:02 -0800 (Thu, 06 Jan 2022)

Log Message

Unprefix -webkit-print-color-adjust CSS property
https://bugs.webkit.org/show_bug.cgi?id=201098

Reviewed by Darin Adler.

color-adjust is also a deprecated shorthand that just contains print-color-adjust.

LayoutTests/imported/w3c:

* web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:

Source/WebCore:

* animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* css/CSSProperties.json:
* css/parser/CSSParserFastPaths.cpp:
(WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
(WebCore::CSSParserFastPaths::isKeywordPropertyID):

Source/WebInspectorUI:

* UserInterface/Models/CSSKeywordCompletions.js:

LayoutTests:

* fast/css/getComputedStyle/computed-style-expected.txt:
* fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* fast/css/getComputedStyle/resources/property-names.js:
* fast/css/print-color-adjust-expected.txt: Added.
* fast/css/print-color-adjust.html: Added.
* fast/css/webkit-color-adjust-expected.txt: Removed.
* fast/css/webkit-color-adjust.html: Removed.
* platform/glib/fast/css/getComputedStyle/computed-style-expected.txt:
* platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* platform/glib/svg/css/getComputedStyle-basic-expected.txt:
* platform/ios/fast/css/getComputedStyle/computed-style-expected.txt:
* platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
* platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* platform/ios/svg/css/getComputedStyle-basic-expected.txt:
* svg/css/getComputedStyle-basic-expected.txt:
* webgl/webgl-oom-paint-document-no-crash.html:

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (287711 => 287712)


--- trunk/LayoutTests/ChangeLog	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/ChangeLog	2022-01-06 20:21:02 UTC (rev 287712)
@@ -1,3 +1,29 @@
+2022-01-06  Tim Nguyen  <[email protected]>
+
+        Unprefix -webkit-print-color-adjust CSS property
+        https://bugs.webkit.org/show_bug.cgi?id=201098
+
+        Reviewed by Darin Adler.
+
+        color-adjust is also a deprecated shorthand that just contains print-color-adjust.
+
+        * fast/css/getComputedStyle/computed-style-expected.txt:
+        * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+        * fast/css/getComputedStyle/resources/property-names.js:
+        * fast/css/print-color-adjust-expected.txt: Added.
+        * fast/css/print-color-adjust.html: Added.
+        * fast/css/webkit-color-adjust-expected.txt: Removed.
+        * fast/css/webkit-color-adjust.html: Removed.
+        * platform/glib/fast/css/getComputedStyle/computed-style-expected.txt:
+        * platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+        * platform/glib/svg/css/getComputedStyle-basic-expected.txt:
+        * platform/ios/fast/css/getComputedStyle/computed-style-expected.txt:
+        * platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:
+        * platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
+        * platform/ios/svg/css/getComputedStyle-basic-expected.txt:
+        * svg/css/getComputedStyle-basic-expected.txt:
+        * webgl/webgl-oom-paint-document-no-crash.html:
+
 2022-01-06  Youenn Fablet  <[email protected]>
 
         ReadableStream::lock should check whether there is an exception when getting ReadableStreamDefaultReader private constructor

Modified: trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt (287711 => 287712)


--- trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -151,6 +151,7 @@
 perspective: none;
 pointer-events: auto;
 position: static;
+print-color-adjust: economy;
 resize: none;
 right: auto;
 shape-image-threshold: 0;
@@ -244,7 +245,6 @@
 -webkit-mask-clip: border-box;
 -webkit-mask-composite: source-over;
 -webkit-nbsp-mode: normal;
--webkit-print-color-adjust: economy;
 -webkit-rtl-ordering: logical;
 -webkit-text-fill-color: rgb(0, 0, 0);
 -webkit-text-orientation: mixed;

Modified: trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (287711 => 287712)


--- trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -150,6 +150,7 @@
 perspective: none
 pointer-events: auto
 position: static
+print-color-adjust: economy
 resize: none
 right: auto
 shape-image-threshold: 0
@@ -243,7 +244,6 @@
 -webkit-mask-clip: border-box
 -webkit-mask-composite: source-over
 -webkit-nbsp-mode: normal
--webkit-print-color-adjust: economy
 -webkit-rtl-ordering: logical
 -webkit-text-fill-color: rgb(0, 0, 0)
 -webkit-text-orientation: mixed

Modified: trunk/LayoutTests/fast/css/getComputedStyle/resources/property-names.js (287711 => 287712)


--- trunk/LayoutTests/fast/css/getComputedStyle/resources/property-names.js	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/fast/css/getComputedStyle/resources/property-names.js	2022-01-06 20:21:02 UTC (rev 287712)
@@ -95,7 +95,7 @@
     "order": true,
     "perspective": true,
     "perspective-origin": true,
-    "-webkit-print-color-adjust": true,
+    "print-color-adjust": true,
     "-webkit-rtl-ordering": true,
     "text-combine-upright": true,
     "-webkit-text-decorations-in-effect": true,

Added: trunk/LayoutTests/fast/css/print-color-adjust-expected.txt (0 => 287712)


--- trunk/LayoutTests/fast/css/print-color-adjust-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/css/print-color-adjust-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -0,0 +1,6 @@
+economy: PASS
+exact: PASS
+shorthand-economy: PASS
+shorthand-exact: PASS
+prefixed-economy: PASS
+prefixed-exact: PASS

Added: trunk/LayoutTests/fast/css/print-color-adjust.html (0 => 287712)


--- trunk/LayoutTests/fast/css/print-color-adjust.html	                        (rev 0)
+++ trunk/LayoutTests/fast/css/print-color-adjust.html	2022-01-06 20:21:02 UTC (rev 287712)
@@ -0,0 +1,35 @@
+<head>
+<script>
+let output = [];
+
+function test(id, expected) {
+    let adjust = window.getComputedStyle(document.getElementById(id)).printColorAdjust;
+    if (adjust == expected)
+        output.push(`${id}: PASS`);
+    else
+        output.push(`${id}: FAIL. print-color-adjust was ${adjust}, it should have been ${expected}.`);
+}
+
+function runTests() {
+    if (window.testRunner)
+        window.testRunner.dumpAsText();
+
+    test("economy", "economy");
+    test("exact", "exact");
+    test("shorthand-economy", "economy");
+    test("shorthand-exact", "exact");
+    test("prefixed-economy", "economy");
+    test("prefixed-exact", "exact");
+
+    document.body.innerHTML = output.join("\n");
+}
+</script>
+</head>
+<body _onLoad_="runTests();" style="white-space: pre-wrap;">
+<div id="economy" style="print-color-adjust: economy;"></div>
+<div id="exact" style="print-color-adjust: exact;"></div>
+<div id="shorthand-economy" style="color-adjust: economy;"></div>
+<div id="shorthand-exact" style="color-adjust: exact;"></div>
+<div id="prefixed-economy" style="-webkit-print-color-adjust: economy;"></div>
+<div id="prefixed-exact" style="-webkit-print-color-adjust: exact;"></div>
+</body>

Deleted: trunk/LayoutTests/fast/css/webkit-color-adjust-expected.txt (287711 => 287712)


--- trunk/LayoutTests/fast/css/webkit-color-adjust-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/fast/css/webkit-color-adjust-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -1,2 +0,0 @@
-SUCCESS
-SUCCESS

Deleted: trunk/LayoutTests/fast/css/webkit-color-adjust.html (287711 => 287712)


--- trunk/LayoutTests/fast/css/webkit-color-adjust.html	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/fast/css/webkit-color-adjust.html	2022-01-06 20:21:02 UTC (rev 287712)
@@ -1,28 +0,0 @@
-<head>
-<script>
-var output = [];
-
-function test(id, expected) {
-    var adjust = window.getComputedStyle(document.getElementById(id)).webkitPrintColorAdjust;
-    if (adjust == expected)
-        output.push("SUCCESS");
-    else
-        output.push("FAILURE.  -webkit-print-color-adjust was " + adjust + ", it should have been " + expected);
-}
-
-function runTests() {
-    if (window.testRunner)
-        window.testRunner.dumpAsText();
-
-    test("economy", "economy");
-    test("exact", "exact");
-
-    document.body.innerHTML = output.join("\n");
-}
-
-</script>
-</head>
-<body _onLoad_="runTests();" style="white-space: pre-wrap;">
-<div id="economy" style="-webkit-print-color-adjust:economy;"></div>
-<div id="exact" style="-webkit-print-color-adjust:exact;"></div>
-</body>

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (287711 => 287712)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2022-01-06 20:21:02 UTC (rev 287712)
@@ -1,3 +1,14 @@
+2022-01-06  Tim Nguyen  <[email protected]>
+
+        Unprefix -webkit-print-color-adjust CSS property
+        https://bugs.webkit.org/show_bug.cgi?id=201098
+
+        Reviewed by Darin Adler.
+
+        color-adjust is also a deprecated shorthand that just contains print-color-adjust.
+
+        * web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
+
 2022-01-06  Antoine Quint  <[email protected]>
 
         [Web Animations] inserting a rule within a @keyframes rule should update animations

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (287711 => 287712)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -235,6 +235,7 @@
 PASS perspective-origin-y
 PASS pointer-events
 PASS position
+PASS print-color-adjust
 PASS quotes
 PASS r
 PASS resize
@@ -382,7 +383,6 @@
 PASS -webkit-mask-position-y
 PASS -webkit-mask-source-type
 PASS -webkit-nbsp-mode
-PASS -webkit-print-color-adjust
 PASS -webkit-rtl-ordering
 PASS -webkit-ruby-position
 PASS -webkit-text-combine

Modified: trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-expected.txt (287711 => 287712)


--- trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -151,6 +151,7 @@
 perspective: none;
 pointer-events: auto;
 position: static;
+print-color-adjust: economy;
 resize: none;
 right: auto;
 shape-image-threshold: 0;
@@ -244,7 +245,6 @@
 -webkit-mask-clip: border-box;
 -webkit-mask-composite: source-over;
 -webkit-nbsp-mode: normal;
--webkit-print-color-adjust: economy;
 -webkit-rtl-ordering: logical;
 -webkit-text-fill-color: rgb(0, 0, 0);
 -webkit-text-orientation: mixed;

Modified: trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (287711 => 287712)


--- trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/platform/glib/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -150,6 +150,7 @@
 perspective: none
 pointer-events: auto
 position: static
+print-color-adjust: economy
 resize: none
 right: auto
 shape-image-threshold: 0
@@ -243,7 +244,6 @@
 -webkit-mask-clip: border-box
 -webkit-mask-composite: source-over
 -webkit-nbsp-mode: normal
--webkit-print-color-adjust: economy
 -webkit-rtl-ordering: logical
 -webkit-text-fill-color: rgb(0, 0, 0)
 -webkit-text-orientation: mixed

Modified: trunk/LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt (287711 => 287712)


--- trunk/LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -300,6 +300,8 @@
 rect: style.getPropertyCSSValue(pointer-events) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(position) : static
 rect: style.getPropertyCSSValue(position) : [object CSSPrimitiveValue]
+rect: style.getPropertyValue(print-color-adjust) : economy
+rect: style.getPropertyCSSValue(print-color-adjust) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(resize) : none
 rect: style.getPropertyCSSValue(resize) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(right) : auto
@@ -486,8 +488,6 @@
 rect: style.getPropertyCSSValue(-webkit-mask-composite) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-nbsp-mode) : normal
 rect: style.getPropertyCSSValue(-webkit-nbsp-mode) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(-webkit-print-color-adjust) : economy
-rect: style.getPropertyCSSValue(-webkit-print-color-adjust) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-rtl-ordering) : logical
 rect: style.getPropertyCSSValue(-webkit-rtl-ordering) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-text-fill-color) : rgb(0, 0, 0)
@@ -810,6 +810,8 @@
 g: style.getPropertyCSSValue(pointer-events) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(position) : static
 g: style.getPropertyCSSValue(position) : [object CSSPrimitiveValue]
+g: style.getPropertyValue(print-color-adjust) : economy
+g: style.getPropertyCSSValue(print-color-adjust) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(resize) : none
 g: style.getPropertyCSSValue(resize) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(right) : auto
@@ -996,8 +998,6 @@
 g: style.getPropertyCSSValue(-webkit-mask-composite) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-nbsp-mode) : normal
 g: style.getPropertyCSSValue(-webkit-nbsp-mode) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(-webkit-print-color-adjust) : economy
-g: style.getPropertyCSSValue(-webkit-print-color-adjust) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-rtl-ordering) : logical
 g: style.getPropertyCSSValue(-webkit-rtl-ordering) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-text-fill-color) : rgb(0, 0, 0)

Modified: trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt (287711 => 287712)


--- trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -151,6 +151,7 @@
 perspective: none;
 pointer-events: auto;
 position: static;
+print-color-adjust: economy;
 resize: none;
 right: auto;
 shape-image-threshold: 0;
@@ -244,7 +245,6 @@
 -webkit-mask-clip: border-box;
 -webkit-mask-composite: source-over;
 -webkit-nbsp-mode: normal;
--webkit-print-color-adjust: economy;
 -webkit-rtl-ordering: logical;
 -webkit-text-fill-color: rgb(0, 0, 0);
 -webkit-text-orientation: mixed;

Modified: trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt (287711 => 287712)


--- trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -150,6 +150,7 @@
 perspective: none
 pointer-events: auto
 position: static
+print-color-adjust: economy
 resize: none
 right: auto
 shape-image-threshold: 0
@@ -243,7 +244,6 @@
 -webkit-mask-clip: border-box
 -webkit-mask-composite: source-over
 -webkit-nbsp-mode: normal
--webkit-print-color-adjust: economy
 -webkit-rtl-ordering: logical
 -webkit-text-fill-color: rgb(0, 0, 0)
 -webkit-text-orientation: mixed

Modified: trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (287711 => 287712)


--- trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -214,6 +214,7 @@
 PASS perspective-origin-y
 PASS pointer-events
 PASS position
+PASS print-color-adjust
 PASS quotes
 PASS r
 PASS resize
@@ -359,7 +360,6 @@
 PASS -webkit-mask-source-type
 PASS -webkit-nbsp-mode
 PASS -webkit-overflow-scrolling
-PASS -webkit-print-color-adjust
 PASS -webkit-rtl-ordering
 PASS -webkit-ruby-position
 PASS -webkit-text-fill-color

Modified: trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt (287711 => 287712)


--- trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/platform/ios/svg/css/getComputedStyle-basic-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -300,6 +300,8 @@
 rect: style.getPropertyCSSValue(pointer-events) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(position) : static
 rect: style.getPropertyCSSValue(position) : [object CSSPrimitiveValue]
+rect: style.getPropertyValue(print-color-adjust) : economy
+rect: style.getPropertyCSSValue(print-color-adjust) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(resize) : none
 rect: style.getPropertyCSSValue(resize) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(right) : auto
@@ -486,8 +488,6 @@
 rect: style.getPropertyCSSValue(-webkit-mask-composite) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-nbsp-mode) : normal
 rect: style.getPropertyCSSValue(-webkit-nbsp-mode) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(-webkit-print-color-adjust) : economy
-rect: style.getPropertyCSSValue(-webkit-print-color-adjust) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-rtl-ordering) : logical
 rect: style.getPropertyCSSValue(-webkit-rtl-ordering) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-text-fill-color) : rgb(0, 0, 0)
@@ -810,6 +810,8 @@
 g: style.getPropertyCSSValue(pointer-events) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(position) : static
 g: style.getPropertyCSSValue(position) : [object CSSPrimitiveValue]
+g: style.getPropertyValue(print-color-adjust) : economy
+g: style.getPropertyCSSValue(print-color-adjust) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(resize) : none
 g: style.getPropertyCSSValue(resize) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(right) : auto
@@ -996,8 +998,6 @@
 g: style.getPropertyCSSValue(-webkit-mask-composite) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-nbsp-mode) : normal
 g: style.getPropertyCSSValue(-webkit-nbsp-mode) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(-webkit-print-color-adjust) : economy
-g: style.getPropertyCSSValue(-webkit-print-color-adjust) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-rtl-ordering) : logical
 g: style.getPropertyCSSValue(-webkit-rtl-ordering) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-text-fill-color) : rgb(0, 0, 0)

Modified: trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt (287711 => 287712)


--- trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/svg/css/getComputedStyle-basic-expected.txt	2022-01-06 20:21:02 UTC (rev 287712)
@@ -300,6 +300,8 @@
 rect: style.getPropertyCSSValue(pointer-events) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(position) : static
 rect: style.getPropertyCSSValue(position) : [object CSSPrimitiveValue]
+rect: style.getPropertyValue(print-color-adjust) : economy
+rect: style.getPropertyCSSValue(print-color-adjust) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(resize) : none
 rect: style.getPropertyCSSValue(resize) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(right) : auto
@@ -486,8 +488,6 @@
 rect: style.getPropertyCSSValue(-webkit-mask-composite) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-nbsp-mode) : normal
 rect: style.getPropertyCSSValue(-webkit-nbsp-mode) : [object CSSPrimitiveValue]
-rect: style.getPropertyValue(-webkit-print-color-adjust) : economy
-rect: style.getPropertyCSSValue(-webkit-print-color-adjust) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-rtl-ordering) : logical
 rect: style.getPropertyCSSValue(-webkit-rtl-ordering) : [object CSSPrimitiveValue]
 rect: style.getPropertyValue(-webkit-text-fill-color) : rgb(0, 0, 0)
@@ -810,6 +810,8 @@
 g: style.getPropertyCSSValue(pointer-events) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(position) : static
 g: style.getPropertyCSSValue(position) : [object CSSPrimitiveValue]
+g: style.getPropertyValue(print-color-adjust) : economy
+g: style.getPropertyCSSValue(print-color-adjust) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(resize) : none
 g: style.getPropertyCSSValue(resize) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(right) : auto
@@ -996,8 +998,6 @@
 g: style.getPropertyCSSValue(-webkit-mask-composite) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-nbsp-mode) : normal
 g: style.getPropertyCSSValue(-webkit-nbsp-mode) : [object CSSPrimitiveValue]
-g: style.getPropertyValue(-webkit-print-color-adjust) : economy
-g: style.getPropertyCSSValue(-webkit-print-color-adjust) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-rtl-ordering) : logical
 g: style.getPropertyCSSValue(-webkit-rtl-ordering) : [object CSSPrimitiveValue]
 g: style.getPropertyValue(-webkit-text-fill-color) : rgb(0, 0, 0)

Modified: trunk/LayoutTests/webgl/webgl-oom-paint-document-no-crash.html (287711 => 287712)


--- trunk/LayoutTests/webgl/webgl-oom-paint-document-no-crash.html	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/LayoutTests/webgl/webgl-oom-paint-document-no-crash.html	2022-01-06 20:21:02 UTC (rev 287712)
@@ -10,7 +10,7 @@
 This would leading to crash if the allocation was denied.
 To ensure expected behavior, e.g. to observe the failure, the canvas should not be visible.
 To assert this, use div with border as indicator. Background cannot be used as printing
-disables the backgrounds and -webkit-print-color-adjust: exact is not respected in
+disables the backgrounds and print-color-adjust: exact is not respected in
 WTR printing mode.
 -->
 <div style="position: absolute; width: 300px; height: 150px; border:55px solid green;"></div>

Modified: trunk/Source/WebCore/ChangeLog (287711 => 287712)


--- trunk/Source/WebCore/ChangeLog	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/Source/WebCore/ChangeLog	2022-01-06 20:21:02 UTC (rev 287712)
@@ -1,3 +1,21 @@
+2022-01-06  Tim Nguyen  <[email protected]>
+
+        Unprefix -webkit-print-color-adjust CSS property
+        https://bugs.webkit.org/show_bug.cgi?id=201098
+
+        Reviewed by Darin Adler.
+
+        color-adjust is also a deprecated shorthand that just contains print-color-adjust.
+
+        * animation/CSSPropertyAnimation.cpp:
+        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
+        * css/CSSProperties.json:
+        * css/parser/CSSParserFastPaths.cpp:
+        (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue):
+        (WebCore::CSSParserFastPaths::isKeywordPropertyID):
+
 2022-01-06  Youenn Fablet  <[email protected]>
 
         ReadableStream::lock should check whether there is an exception when getting ReadableStreamDefaultReader private constructor

Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (287711 => 287712)


--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp	2022-01-06 20:21:02 UTC (rev 287712)
@@ -2721,7 +2721,7 @@
         new DiscretePropertyWrapper<BoxSizing>(CSSPropertyBoxSizing, &RenderStyle::boxSizing, &RenderStyle::setBoxSizing),
         new DiscretePropertyWrapper<CaptionSide>(CSSPropertyCaptionSide, &RenderStyle::captionSide, &RenderStyle::setCaptionSide),
         new DiscretePropertyWrapper<Clear>(CSSPropertyClear, &RenderStyle::clear, &RenderStyle::setClear),
-        new DiscretePropertyWrapper<PrintColorAdjust>(CSSPropertyWebkitPrintColorAdjust, &RenderStyle::printColorAdjust, &RenderStyle::setPrintColorAdjust),
+        new DiscretePropertyWrapper<PrintColorAdjust>(CSSPropertyPrintColorAdjust, &RenderStyle::printColorAdjust, &RenderStyle::setPrintColorAdjust),
         new DiscretePropertyWrapper<ColumnFill>(CSSPropertyColumnFill, &RenderStyle::columnFill, &RenderStyle::setColumnFill),
         new DiscretePropertyWrapper<BorderStyle>(CSSPropertyColumnRuleStyle, &RenderStyle::columnRuleStyle, &RenderStyle::setColumnRuleStyle),
         new DiscretePropertyWrapper<BorderStyle>(CSSPropertyColumnRuleStyle, &RenderStyle::columnRuleStyle, &RenderStyle::setColumnRuleStyle),

Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (287711 => 287712)


--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp	2022-01-06 20:21:02 UTC (rev 287712)
@@ -2999,7 +2999,7 @@
             return cssValuePool.createValue(style.clear());
         case CSSPropertyColor:
             return cssValuePool.createColorValue(m_allowVisitedStyle ? style.visitedDependentColor(CSSPropertyColor) : style.color());
-        case CSSPropertyWebkitPrintColorAdjust:
+        case CSSPropertyPrintColorAdjust:
             return cssValuePool.createValue(style.printColorAdjust());
         case CSSPropertyWebkitColumnAxis:
             return cssValuePool.createValue(style.columnAxis());

Modified: trunk/Source/WebCore/css/CSSProperties.json (287711 => 287712)


--- trunk/Source/WebCore/css/CSSProperties.json	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/Source/WebCore/css/CSSProperties.json	2022-01-06 20:21:02 UTC (rev 287712)
@@ -6493,8 +6493,12 @@
                 "enable-if": "ENABLE_DARK_MODE_CSS",
                 "high-priority": true
             },
+            "specification": {
+                "category": "css-color-adjust",
+                "url": "https://www.w3.org/TR/css-color-adjust/#color-scheme-prop"
+            },
             "status": {
-                "status": "in development",
+                "status": "supported",
                 "enabled-by-default": true
             }
         },
@@ -6571,13 +6575,22 @@
                 "url": "https://www.w3.org/TR/css-counter-styles-3/#counter-style-prefix"
             }
         },
-        "-webkit-print-color-adjust": {
+        "print-color-adjust": {
+            "codegen-properties": {
+                "aliases": [
+                    "-webkit-print-color-adjust",
+                    "color-adjust"
+                ]
+            },
             "inherited": true,
             "values": [
                 "exact",
                 "economy"
             ],
-            "status": "non-standard"
+            "specification": {
+                "category": "css-color-adjust",
+                "url": "https://www.w3.org/TR/css-color-adjust/#print-color-adjust"
+            }
         },
         "range": {
             "codegen-properties": {
@@ -7673,8 +7686,13 @@
         "css-color": {
             "shortname": "CSS Color",
             "longname": "CSS Color Module",
-            "url": "https://www.w3.org/TR/css3-color/"
+            "url": "https://www.w3.org/TR/css-color/"
         },
+        "css-color-adjust": {
+            "shortname": "CSS Color Adjustment",
+            "longname": "CSS Color Adjustment Module",
+            "url": "https://www.w3.org/TR/css-color-adjust/"
+        },
         "css-compositing": {
             "shortname": "CSS Compositing and Blending",
             "longname": "CSS Compositing and Blending",

Modified: trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp (287711 => 287712)


--- trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp	2022-01-06 20:21:02 UTC (rev 287712)
@@ -802,7 +802,7 @@
         return valueID == CSSValueAuto || valueID == CSSValueLoose || valueID == CSSValueNormal || valueID == CSSValueStrict || valueID == CSSValueAfterWhiteSpace || valueID == CSSValueAnywhere;
     case CSSPropertyWebkitLineSnap:
         return valueID == CSSValueNone || valueID == CSSValueBaseline || valueID == CSSValueContain;
-    case CSSPropertyWebkitPrintColorAdjust:
+    case CSSPropertyPrintColorAdjust:
         return valueID == CSSValueExact || valueID == CSSValueEconomy;
     case CSSPropertyWebkitRtlOrdering:
         return valueID == CSSValueLogical || valueID == CSSValueVisual;
@@ -974,7 +974,7 @@
     case CSSPropertyWebkitMarqueeDirection:
     case CSSPropertyWebkitMarqueeStyle:
     case CSSPropertyWebkitNbspMode:
-    case CSSPropertyWebkitPrintColorAdjust:
+    case CSSPropertyPrintColorAdjust:
     case CSSPropertyWebkitRtlOrdering:
     case CSSPropertyWebkitRubyPosition:
     case CSSPropertyWebkitTextCombine:

Modified: trunk/Source/WebInspectorUI/ChangeLog (287711 => 287712)


--- trunk/Source/WebInspectorUI/ChangeLog	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/Source/WebInspectorUI/ChangeLog	2022-01-06 20:21:02 UTC (rev 287712)
@@ -1,3 +1,14 @@
+2022-01-06  Tim Nguyen  <[email protected]>
+
+        Unprefix -webkit-print-color-adjust CSS property
+        https://bugs.webkit.org/show_bug.cgi?id=201098
+
+        Reviewed by Darin Adler.
+
+        color-adjust is also a deprecated shorthand that just contains print-color-adjust.
+
+        * UserInterface/Models/CSSKeywordCompletions.js:
+
 2022-01-06  Alex Christensen  <[email protected]>
 
         Start using C++20

Modified: trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js (287711 => 287712)


--- trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js	2022-01-06 20:13:31 UTC (rev 287711)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js	2022-01-06 20:21:02 UTC (rev 287712)
@@ -303,7 +303,6 @@
     "-webkit-locale",
     "-webkit-nbsp-mode",
     "-webkit-overflow-scrolling",
-    "-webkit-print-color-adjust",
     "-webkit-rtl-ordering",
     "-webkit-ruby-position",
     "-webkit-text-align-last",
@@ -379,6 +378,7 @@
     "marker-start",
     "orphans",
     "pointer-events",
+    "print-color-adjust",
     "quotes",
     "resize",
     "shape-rendering",
@@ -1111,7 +1111,7 @@
     "-webkit-overflow-scrolling": [
         "auto", "touch",
     ],
-    "-webkit-print-color-adjust": [
+    "print-color-adjust": [
         "economy", "exact",
     ],
     "-webkit-rtl-ordering": [
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to