Closed Bug 2078463 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 63283 - Fix casing of webkitBackgroundClip in compat/css-style-declaration-alias-enumeration.html

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
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.html checks that each -webkit- legacy alias from the Compat spec is exposed on CSSStyleDeclaration. 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-clip to be supported as a legacy name alias of background-clip. CSSOM then defines the IDL attribute names exposed for a supported CSS property such as -webkit-background-clip:

The CSS property to IDL attribute algorithm only uppercases a character that directly follows a -. In -webkit-background-clip the k comes after b, so it can never be uppercased, and no algorithm produces WebKitBackgroundClip.

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 in PREFIXED_PROPS uses 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 CSSStyleDeclaration fails ('WebKitBackgroundClip' in document.body.style === false), while webkitBackgroundClip and WebkitBackgroundClip are both true.
  • After the fix: 51 / 51 pass.
  • ./wpt lint compat/css-style-declaration-alias-enumeration.html reports no errors.
Component: web-platform-tests → Layout
Product: Testing → Core

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]
  • /compat/webkit-gradient-sign.html [wpt.fyi]
    • webkit-gradient-sign: FAIL
  • /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
  • /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]
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8c0d12ab37b8 https://hg.mozilla.org/integration/autoland/rev/bd93136027a6 [wpt PR 63283] - Fix casing of webkitBackgroundClip in compat/css-style-declaration-alias-enumeration.html, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.