Bug 1437909 [wpt PR 9499] - Correct serialization of background-color, a=testonly
authorcsnardi <christopherncarmel@hotmail.com>
Mon, 26 Mar 2018 11:34:21 +0000
changeset 467037 9eb0820a474542ff3a6e3ea953f38dd1313623bd
parent 467036 6ec3883622cfcab8ade9340419a8005c9001a5d7
child 467038 7929394649f2f13b49dd44c41244bcd85b83e2ba
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1437909
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1437909 [wpt PR 9499] - Correct serialization of background-color, a=testonly Automatic update from web-platform-testsCorrect serialization of background-color (#9499) According to https://drafts.csswg.org/css-color/#resolving-color-values, transparent should serialize to "rgba(0, 0, 0, 0)", and named colors should serialize to their equivalent value in rgb notation. Change the expectations for 3 background tests in order to match this part of the spec. wpt-commits: 43deb07215d283d63e2bdca51d6268eba43bbe81 wpt-pr: 9499 wpt-commits: 43deb07215d283d63e2bdca51d6268eba43bbe81 wpt-pr: 9499
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-backgrounds/background-331.html
testing/web-platform/tests/css/css-backgrounds/background-332.html
testing/web-platform/tests/css/css-backgrounds/background-333.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -477057,25 +477057,25 @@
    "d4692e2ac84a6dbbc9efd7937964d43ecd9dd109",
    "manual"
   ],
   "css/css-backgrounds/OWNERS": [
    "656d9f4e3a66f8cb955910171b9997140e4bbd8e",
    "support"
   ],
   "css/css-backgrounds/background-331.html": [
-   "46a936bd341e7311613693b065c3ac6bcc2c391e",
+   "28185e9f9710a676579fa8de6cc39e1febc9e16f",
    "testharness"
   ],
   "css/css-backgrounds/background-332.html": [
-   "c581a0c1d1dc8f73d035c2b5b960d84516c6a0d9",
+   "ba3453739dee1dac840b3916b09cf161752d2f1d",
    "testharness"
   ],
   "css/css-backgrounds/background-333.html": [
-   "8bf2b28906a57250cbb07665c1be62fd5b4dedab",
+   "42e4208e11dd799e650343b580843b182099a3b2",
    "testharness"
   ],
   "css/css-backgrounds/background-334.html": [
    "bd224c99dba06a0ecfcfc84618ad28dcd5906ad0",
    "reftest"
   ],
   "css/css-backgrounds/background-335.html": [
    "90ac20c8f46096e9e04acf9a4815cec3e679147a",
--- a/testing/web-platform/tests/css/css-backgrounds/background-331.html
+++ b/testing/web-platform/tests/css/css-backgrounds/background-331.html
@@ -52,13 +52,13 @@
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-clip"),
                 "border-box", "background initial value for background-clip");
         }, "background_initial_clip");
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-color"),
-                "transparent", "background initial value for background-color");
+                "rgba(0, 0, 0, 0)", "background initial value for background-color");
         }, "background_initial_color");
     </script>
   </body>
 </html>
--- a/testing/web-platform/tests/css/css-backgrounds/background-332.html
+++ b/testing/web-platform/tests/css/css-backgrounds/background-332.html
@@ -52,13 +52,13 @@
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-clip"),
                 "border-box", "background specified value for background-clip");
         }, "background_specified_clip");
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-color"),
-                "gray", "background specified value for background-color");
+                "rgb(128, 128, 128)", "background specified value for background-color");
         }, "background_specified_color");
     </script>
   </body>
 </html>
--- a/testing/web-platform/tests/css/css-backgrounds/background-333.html
+++ b/testing/web-platform/tests/css/css-backgrounds/background-333.html
@@ -52,13 +52,13 @@
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-clip"),
                 "border-box", "background initial value for background-clip");
         }, "background_specified_color_clip");
 
         test(function() {
             assert_equals(cs.getPropertyValue("background-color"),
-                "red", "background specified value for background-color");
+                "rgb(255, 0, 0)", "background specified value for background-color");
         }, "background_specified_color_color");
     </script>
   </body>
 </html>