commit a23187c2d1f903e5e1b395eaaff4c03b83f2acbd
parent 49b6cee6c388fc328ba3620642e3e30dc043ea05
Author: Tim Nguyen <nt1m@users.noreply.github.com>
Date: Wed, 15 Oct 2025 08:44:48 +0000
Bug 1993955 [wpt PR 55372] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=299912, a=testonly
Automatic update from web-platform-tests
WebKit export: Fix background-shorthand-serialization.html WPT expectations (#55372)
https://bugs.webkit.org/show_bug.cgi?id=299912
--
wpt-commits: 2f7e8386d0cbe6a02f449e6ed40664f6b24f0759
wpt-pr: 55372
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/css/css-backgrounds/parsing/background-shorthand-serialization.html b/testing/web-platform/tests/css/css-backgrounds/parsing/background-shorthand-serialization.html
@@ -29,14 +29,15 @@
test((t) => {
element.style = 'background: url("/favicon.ico") 0% 0% / 10rem;';
- assert_equals(element.style.background , 'url("/favicon.ico") 0% 0% / 10rem');
+ // background-size should always serialize to two values per https://github.com/w3c/csswg-drafts/issues/7802
+ assert_equals(element.style.background , 'url("/favicon.ico") 0% 0% / 10rem auto');
}, "background-size with non-initial background-position");
test((t) => {
element.style = `background: url(/favicon.ico) top left no-repeat,
url(/favicon.ico) center / 100% 100% no-repeat,
url(/favicon.ico) white;`;
- assert_equals(element.style.background , 'url("/favicon.ico") left top no-repeat, url("/favicon.ico") center center / 100% 100% no-repeat, white url("/favicon.ico")');
+ assert_equals(element.style.background , 'url("/favicon.ico") left top no-repeat, url("/favicon.ico") center center / 100% 100% no-repeat, url("/favicon.ico") white');
}, "multiple backgrounds with varying values");
test((t) => {