Closed Bug 2073693 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62801 - Blink: Select aligned snap targets in flat tree order

Categories

(Core :: Layout: Scrolling and Overflow, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 62801 into mozilla-central (this bug is closed when the sync is complete).

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

Michael Reeves <michael.reeves077@gmail.com> wrote:

Blink: Select aligned snap targets in flat tree order

When multiple snap areas align at the same position, CSS Scroll Snap
removes ancestor areas and selects the first remaining area in tree
order. Blink ordered areas by DOM layout preorder and inferred ancestry
from rectangle containment. This could repeatedly select a later slotted
sibling.

Order snap areas by flat tree position and pass each area's nearest
snap-area ancestor to cc. This distinguishes descendants from
geometrically contained siblings and fixes the WPT.

Bug: 543919183
Change-Id: I3576b3fba8c67367cf984e94cdbb0dc2ba32e2e3
Reviewed-on: https://chromium-review.googlesource.com/8238951
WPT-Export-Revision: 2a4e87b22bd1665aa472aafad5c59b7013828aa1

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 17 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 17[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: 1[GitHub] 42[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
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/29f5f93a74a8 https://hg.mozilla.org/integration/autoland/rev/de942a8b2f06 [wpt PR 62801] - Blink: Select aligned snap targets in flat tree order, a=testonly
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.