Closed Bug 2078211 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63272 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=325429

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 63272 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63272
Details from upstream follow.

Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=325429

WebKit export from bug: [Style] The overscroll-behavior shorthand serializes max(x, y) instead of both axis values in getComputedStyle

<pre>
[Style] The overscroll-behavior shorthand serializes max(x, y) instead of both axis values in getComputedStyle

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

The PropertyExtractorAdaptor for the overscroll-behavior shorthand
serialized the value as std::max(overscrollBehaviorX(),
overscrollBehaviorY()). Because OverscrollBehavior is ordered
Auto < Contain < None, this collapsed both axes into a single
"strongest" keyword, dropping the second value entirely: e.g.
overscroll-behavior: contain auto reported back as contain.

This was carried over verbatim from the old
CSSComputedStyleDeclaration. Per the spec [1], overscroll-behavior is a
shorthand that sets overscroll-behavior-x and overscroll-behavior-y in
that order, defaulting the second value to the first when only one is
given:

[1] <a href="https://drafts.csswg.org/css-overscroll/#overscroll-shorthand">https://drafts.csswg.org/css-overscroll/#overscroll-shorthand</a>

It must therefore serialize both values as "x y" in canonical order,
coalescing to a single value only when the two axes are equal, matching
the parsed-declaration path in ShorthandSerializer::serializePair.

Serialize both axes, coalescing when they match, matching the pattern
used by the neighboring shorthand adaptors.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=325429">https://bugs.webkit.org/show_bug.cgi?id=325429</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/322685@main">https://commits.webkit.org/322685@main</a>
</pre>

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 3 tests and 28 subtests

Status Summary

Firefox

OK : 1[GitHub] 3[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: 28[GitHub] 71[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 : 1
PASS: 28

Safari

OK : 1
PASS: 18
FAIL: 10

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

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.