[wpt-sync] Sync PR 62502 - The background shorthand serialization should omit initial values
Categories
(Core :: Layout: Images, Video, and HTML Frames, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62502 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62502
Details from upstream follow.
Javier Fernández García-Boente <jfernandez@igalia.com> wrote:
The background shorthand serialization should omit initial values
Per https://drafts.csswg.org/cssom/#serialize-a-css-value a component that can be omitted without changing the meaning of the value must be omitted.
This PR adds additional test cases to the rest of CSS Background related longhand properties.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=114197
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 74 tests and 25 subtests
Status Summary
Firefox
OK : 2[GitHub] 73[Gecko-linux2404-64-debug] 74[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 44[GitHub] 882[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 26[GitHub] 51[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 2
PASS: 31
FAIL: 39
Safari
OK : 2
PASS: 51
FAIL: 19
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /css/css-backgrounds/parsing/background-valid.html [wpt.fyi]
- e.style['background'] = "border-area" should set background-origin:
FAILlinked bug:Bug 1994124
- e.style['background'] = "border-area" should set background-origin:
New Tests That Don't Pass
- /css/css-backgrounds/parsing/background-clip-computed.html [wpt.fyi]
- Property background-clip value 'border-area text':
FAIL - Property background-clip value 'text border-area':
FAIL
- Property background-clip value 'border-area text':
- /css/css-backgrounds/parsing/background-clip-valid.html [wpt.fyi]
- e.style['background-clip'] = "border-area text" should set the property value:
FAIL - e.style['background-clip'] = "text border-area" should set the property value:
FAIL - e.style['background-clip'] = "border-area text, content-box" should set the property value:
FAIL
- e.style['background-clip'] = "border-area text" should set the property value:
- /css/css-backgrounds/parsing/background-computed.html [wpt.fyi]
- Property background-clip value 'border-area text':
FAIL - Property background-clip value 'border-area text, content-box':
FAIL - Property background-size value 'contain':
FAIL - Property background-size value 'auto 1px, 2% 3%':
FAIL - Property background-size value 'auto 1px, 2% 3%, contain':
FAIL - background shorthand with 'border-area text' computes background-clip correctly:
FAIL - background shorthand with 'text border-area' computes background-clip correctly:
FAIL
- Property background-clip value 'border-area text':
- /css/css-backgrounds/parsing/background-image-invalid.html [wpt.fyi]
- e.style['background-image'] = "cross-fade(101% red, green)" should not set the property value:
FAIL
- e.style['background-image'] = "cross-fade(101% red, green)" should not set the property value:
- /css/css-backgrounds/parsing/background-image-valid.html [wpt.fyi]
- e.style['background-image'] = "cross-fade(50% url(http://www.example.com), 50% url(http://www.example.com))" should set the property value:
FAIL - e.style['background-image'] = "cross-fade(red 33%, white 33%, blue)" should set the property value:
FAIL - e.style['background-image'] = "cross-fade( 1% red, green)" should set the property value:
FAIL - e.style['background-image'] = "cross-fade(1% red , green)" should set the property value:
FAIL - e.style['background-image'] = "cross-fade(1% red, green )" should set the property value:
FAIL - e.style['background-image'] = "cross-fade(red 1%, cross-fade(red 2%, green))" should set the property value:
FAIL
- e.style['background-image'] = "cross-fade(50% url(http://www.example.com), 50% url(http://www.example.com))" should set the property value:
- /css/css-backgrounds/parsing/background-position-x-computed.html [wpt.fyi]
- Property background-position-x value 'x-start':
FAIL - Property background-position-x value 'x-end':
FAIL - Property background-position-x value '0.5em, x-start, x-end':
FAIL
- Property background-position-x value 'x-start':
- /css/css-backgrounds/parsing/background-position-x-valid.html [wpt.fyi]
- e.style['background-position-x'] = "x-start" should set the property value:
FAIL - e.style['background-position-x'] = "x-end" should set the property value:
FAIL - e.style['background-position-x'] = "0.5em, x-start, x-end" should set the property value:
FAIL
- e.style['background-position-x'] = "x-start" should set the property value:
- /css/css-backgrounds/parsing/background-position-y-computed.html [wpt.fyi]
- Property background-position-y value 'y-start':
FAIL - Property background-position-y value 'y-end':
FAIL - Property background-position-y value '0.5em, y-start, y-end':
FAIL
- Property background-position-y value 'y-start':
- /css/css-backgrounds/parsing/background-position-y-valid.html [wpt.fyi]
- e.style['background-position-y'] = "y-start" should set the property value:
FAIL - e.style['background-position-y'] = "y-end" should set the property value:
FAIL - e.style['background-position-y'] = "0.5em, y-start, y-end" should set the property value:
FAIL
- e.style['background-position-y'] = "y-start" should set the property value:
- /css/css-backgrounds/parsing/background-shorthand-serialization.html [wpt.fyi]
- initial background-color:
FAIL(Chrome:FAIL, Safari:PASS) - border-area border-box:
FAIL(Chrome:FAIL, Safari:PASS) - border-area padding-box:
FAIL[GitHub],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - border-area text sets background-clip:
FAIL(Chrome:PASS, Safari:FAIL) - text border-area serializes as border-area text:
FAIL(Chrome:PASS, Safari:FAIL) - border-area text sets background-origin to border-box:
FAIL(Chrome:PASS, Safari:FAIL)
- initial background-color:
- /css/css-backgrounds/parsing/background-size-computed.html [wpt.fyi]
- Property background-size value 'auto' multiple base values:
FAIL - Property background-size value '100%' multiple base values:
FAIL
- Property background-size value 'auto' multiple base values:
- /css/css-backgrounds/parsing/background-valid.html [wpt.fyi]
- e.style['background'] = "none" should set background-color:
FAIL(Chrome:FAIL, Safari:PASS) - e.style['background'] = "border-box content-box" should set background-color:
FAIL(Chrome:FAIL, Safari:PASS) - e.style['background'] = "border-area" should set background-attachment:
FAIL[GitHub],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:FAIL, Safari:PASS) - e.style['background'] = "border-area" should set background-clip:
FAIL[GitHub],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - e.style['background'] = "border-area" should set background-color:
FAIL(Chrome:FAIL, Safari:PASS) - e.style['background'] = "border-area" should set background-image:
FAIL[GitHub],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:FAIL, Safari:PASS) - e.style['background'] = "border-area" should set background-origin:
FAIL(Chrome:PASS, Safari:PASS) - e.style['background'] = "border-area" should set background-position:
FAIL[GitHub],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:FAIL, Safari:PASS) - e.style['background'] = "border-area" should set background-repeat:
FAIL[GitHub],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:FAIL, Safari:PASS) - e.style['background'] = "border-area" should set background-size:
FAIL[GitHub],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:FAIL, Safari:PASS) - e.style['background'] = "border-area" should not set unrelated longhands:
FAIL[GitHub],PASS[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] (Chrome:PASS, Safari:PASS) - e.style['background'] = "border-area text" should set background-attachment:
FAIL(Chrome:FAIL, Safari:FAIL) - e.style['background'] = "border-area text" should set background-clip:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['background'] = "border-area text" should set background-color:
FAIL(Chrome:FAIL, Safari:FAIL) - e.style['background'] = "border-area text" should set background-image:
FAIL(Chrome:FAIL, Safari:FAIL) - e.style['background'] = "border-area text" should set background-origin:
FAIL(Chrome:PASS, Safari:FAIL) - e.style['background'] = "border-area text" should set background-position:
FAIL(Chrome:FAIL, Safari:FAIL) - e.style['background'] = "border-area text" should set background-repeat:
FAIL(Chrome:FAIL, Safari:FAIL) - e.style['background'] = "border-area text" should set background-size:
FAIL(Chrome:FAIL, Safari:FAIL) - e.style['background'] = "border-area text" should not set unrelated longhands:
FAIL(Chrome:PASS, Safari:FAIL)
- e.style['background'] = "none" should set background-color:
- /css/css-backgrounds/parsing/border-image-width-valid.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]
Tests Disabled in Gecko Infrastructure
- /css/css-backgrounds/parsing/border-image-width-valid.html [wpt.fyi]:
OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],SKIP[Gecko-linux2404-64-debug]
Comment 4•24 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/153941e81d57
https://hg.mozilla.org/mozilla-central/rev/208750f27983
Description
•