Bug 1455843 [wpt PR 10462] - Accept variation in serialization of 'background', a=testonly
authorEric Willigers <ewilligers@users.noreply.github.com>
Sun, 22 Apr 2018 15:04:40 +0000
changeset 471422 b5a7874d1f31011fc3ffc401ad16a05f546edb8d
parent 471421 8fee71d393903989b19422c2b592236e6806d9e0
child 471423 60ed7d758b1b4f5afaa636416cf3b5568316ca5e
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
bugs1455843, 10462
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 1455843 [wpt PR 10462] - Accept variation in serialization of 'background', a=testonly Automatic update from web-platform-testsMerge pull request #10462 from ewilligers/background-serialization-variety Accept variation in serialization of 'background' -- wpt-commits: 1e5a5fefe15c4fcc1a3267daf1d75598f736c82f wpt-pr: 10462
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-backgrounds/parsing/background-valid.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -489088,17 +489088,17 @@
    "b7389e94e0d05c8799b27fbf1ac5a4480e184c15",
    "testharness"
   ],
   "css/css-backgrounds/parsing/background-size-valid.html": [
    "ee41ea05c486306e2aac58e6a9dfadd3497bc230",
    "testharness"
   ],
   "css/css-backgrounds/parsing/background-valid.html": [
-   "6eb753aeb01636eadfcf7a09c6e253b2a27c363a",
+   "f382689c8f1d86cccadaab9f80d0ecd41e21757d",
    "testharness"
   ],
   "css/css-backgrounds/parsing/border-color-invalid.html": [
    "f7440a1fc56d993b54d900263876bf5760ed73af",
    "testharness"
   ],
   "css/css-backgrounds/parsing/border-color-valid.html": [
    "a8df09796083692c802b5a48bd7761f474f14ef5",
--- a/testing/web-platform/tests/css/css-backgrounds/parsing/background-valid.html
+++ b/testing/web-platform/tests/css/css-backgrounds/parsing/background-valid.html
@@ -7,14 +7,22 @@
 <link rel="help" href="https://drafts.csswg.org/css-backgrounds/#background">
 <meta name="assert" content="background supports the full grammar '<bg-layer># , <final-bg-layer>'.">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <script src="resources/parsing-testcommon.js"></script>
 </head>
 <body>
 <script>
-// For <final-bg-layer>, implementations serialize <‘background-color’> after <bg-image>, contrary to spec.
-// Safari removes quotes.
-test_valid_value("background", '1px 2px / 3px 4px space round fixed border-box padding-box, red url("https://example.com/")', ['1px 2px / 3px 4px space round fixed border-box padding-box, url("https://example.com/") red', '1px 2px / 3px 4px space round fixed border-box padding-box, url(https://example.com/) red']);
+// Background serialization varies across browsers. https://github.com/w3c/csswg-drafts/issues/418
+
+test_valid_value("background",
+  'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box', [
+  'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, rgb(5, 6, 7) url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box', // spec
+  'url("https://example.com/") local space round 1px 2px / 3px 4px padding-box content-box, url("https://example.com/") local space round 1px 2px / 3px 4px padding-box content-box rgb(5, 6, 7)', // Edge
+  'url("https://example.com/") space round local 1px 2px / 3px 4px padding-box content-box, rgb(5, 6, 7) url("https://example.com/") space round local 1px 2px / 3px 4px padding-box content-box', // Firefox
+  'url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box, url("https://example.com/") 1px 2px / 3px 4px space round local padding-box content-box rgb(5, 6, 7)', // Blink
+  'url(https://example.com/) 1px 2px / 3px 4px space round local padding-box content-box, url(https://example.com/) 1px 2px / 3px 4px space round local padding-box content-box rgb(5, 6, 7)' // WebKit omits quotes - https://bugs.webkit.org/show_bug.cgi?id=28869
+]);
+
 </script>
 </body>
 </html>