[wpt-sync] Sync PR 63283 - Fix casing of webkitBackgroundClip in compat/css-style-declaration-alias-enumeration.html
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63283 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63283
Details from upstream follow.
Gérald Barré <git@meziantou.net> wrote:
Fix casing of webkitBackgroundClip in compat/css-style-declaration-alias-enumeration.html
Summary
compat/css-style-declaration-alias-enumeration.htmlchecks that each-webkit-legacy alias from the Compat spec is exposed onCSSStyleDeclaration. One entry is misspelled as'WebKitBackgroundClip'(capital K). No spec defines that name, so the subtest fails in every engine. This PR changes it to'webkitBackgroundClip', which is what the original change meant to add.Why the test is wrong
Compat § CSS simple aliases requires
-webkit-background-clipto be supported as a legacy name alias ofbackground-clip. CSSOM then defines the IDL attribute names exposed for a supported CSS property such as-webkit-background-clip:
- camel-cased attribute: the CSS property to IDL attribute algorithm run on the property name. The leading
-uppercases thew, which givesWebkitBackgroundClip.- webkit-cased attribute: defined for properties that begin with
-webkit-. It runs the same algorithm with the lowercase first flag set, which drops the leading-and giveswebkitBackgroundClip.- dashed attribute:
-webkit-background-clip.The CSS property to IDL attribute algorithm only uppercases a character that directly follows a
-. In-webkit-background-clipthekcomes afterb, so it can never be uppercased, and no algorithm producesWebKitBackgroundClip.The entry came from #34520. That commit's message says "Adds webkitBackgroundClip to the list of alias", but the code added
'WebKitBackgroundClip', so this was a typo. Every other entry inPREFIXED_PROPSuses the webkit-cased form (webkitBackgroundOrigin,webkitBackgroundSize, …). This fix uses the same form.Current results
On wpt.fyi stable, every engine fails only this subtest (50/51):
Browser Result Chrome 154 50 / 51 Edge 154 50 / 51 Firefox 157 50 / 51 Safari 27 50 / 51 Validation
- Locally in Chromium 152, before the fix:
WebKitBackgroundClip found on CSSStyleDeclarationfails ('WebKitBackgroundClip' in document.body.style === false), whilewebkitBackgroundClipandWebkitBackgroundClipare bothtrue.- After the fix: 51 / 51 pass.
./wpt lint compat/css-style-declaration-alias-enumeration.htmlreports no errors.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=100735
| 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 38 tests
Status Summary
Firefox
OK : 1[GitHub] 13[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]
PASS: 51[GitHub] 125[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 148[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 149[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 152[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]
FAIL: 11[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] 13[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 14[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 15[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS: 51
Safari
OK : 1
PASS: 51
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /compat/idlharness.window.html [wpt.fyi]
- HTMLBodyElement interface: attribute onorientationchange:
FAIL - HTMLBodyElement interface: document.body must inherit property "onorientationchange" with the proper type:
FAIL - Window interface: attribute orientation:
FAIL[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],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] - Window interface: attribute onorientationchange:
FAIL[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],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] - Window interface: window must inherit property "orientation" with the proper type:
FAIL[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],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] - Window interface: window must inherit property "onorientationchange" with the proper type:
FAIL[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],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]
- HTMLBodyElement interface: attribute onorientationchange:
- /compat/webkit-gradient-sign.html [wpt.fyi]
- webkit-gradient-sign:
FAIL
- webkit-gradient-sign:
- /compat/webkit-mask-box-enumeration.html [wpt.fyi]
- webkitMaskBoxImage found on CSSStyleDeclaration:
FAIL - webkitMaskBoxImageOutset found on CSSStyleDeclaration:
FAIL - webkitMaskBoxImageRepeat found on CSSStyleDeclaration:
FAIL - webkitMaskBoxImageSlice found on CSSStyleDeclaration:
FAIL - webkitMaskBoxImageSource found on CSSStyleDeclaration:
FAIL - webkitMaskBoxImageWidth found on CSSStyleDeclaration:
FAIL
- webkitMaskBoxImage found on CSSStyleDeclaration:
- /compat/webkit-box-blockify.html [wpt.fyi]:
FAIL - /compat/webkit-box-clamp-bottom-border.html [wpt.fyi]:
FAIL[Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],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] - /compat/webkit-box-rtl-flex.html [wpt.fyi]:
FAIL[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],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
Comment 4•1 month ago
|
||
| bugherder | ||
Description
•