Closed Bug 2063594 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 61935 - [scroll-snap] Fix target Element IDs for mutual snap

Categories

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

task

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
firefox156 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

David Awogbemila <awogbemila@chromium.org> wrote:

[scroll-snap] Fix target Element IDs for mutual snap

When a scroll container snaps using mutual snap (where independent
searches on X and Y axes fail to find mutually visible targets, but a
combined search finds a valid snap area), the target snap area element
IDs were not being populated on the SnapPositionData result.

This caused the compositor to lose track of the snap target, leading to
a DCHECK violation in ScrollOffsetAnimationFinished because
was_animating_for_snap was false.

This CL fixes FindSnapPositionForMutualSnap to populate
target_element_ids with the selected area's element ID.

Bug: 546014641
Change-Id: I52c5c353e55734583a9030c2f7ad5ce3705f59de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8247122
Commit-Queue: David A \<awogbemila@chromium.org>
Reviewed-by: Robert Flack \<flackr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1679172}

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core

CI Results

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

Total 194 tests

Status Summary

Firefox

OK : 159[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] 160[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 : 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 720[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 745[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 746[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 : 73[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] 75[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 76[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2

Chrome

TIMEOUT: 2

Safari

TIMEOUT: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch
You need to log in before you can comment on or make changes to this bug.