Closed Bug 2084215 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 63895 - scroll-snap: Update scrollsnapchanging targets after a short scroll

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Vladimir Levin <vmpstr@chromium.org> wrote:

scroll-snap: Update scrollsnapchanging targets after a short scroll

If a scroll starts and finishes between commits from the compositor,
SendEndOfScrollEvents() runs on the main thread without an intervening
SendScrollSnapChangingEventIfNeeded() call.

Update the scrollsnapchanging targets and enqueue scrollsnapchanging in
UpdateSnappedTargetsAndEnqueueScrollSnapChange() before checking for
scrollsnapchange so that scrollsnapchanging always precedes
scrollsnapchange (and overscroll state reflects the final snapped
targets).

Additionally, fix two issues where TargetSnapAreaElementIds updates were
dropped or overwritten on non-composited (RasterInducingScroll)
scrollers:

  • Request a commit in PropertyTreeManager::EnsureCompositorScrollNodeInternal
    when a ScrollPaintPropertyNode has changed, and clear change flags on
    scroll_translation_nodes in PaintArtifactCompositor::Update.
  • Keep pending_tree and recycle_tree in sync when updating
    TargetSnapAreaElementIds on the active tree via
    LayerTreeImpl::SetTargetSnapAreaElementIds so impl-side invalidations
    do not overwrite active tree snap targets.

Bug: 575414038
Change-Id: If8f1ad74b22813154d5d80ebf62234f1cbcc4c97
Reviewed-on: https://chromium-review.googlesource.com/8550803
WPT-Export-Revision: b4cebeaa16cc0dac5904f1139eed437e467ad796

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

CI Results

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

Total 6 tests and 3 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]
FAIL: 1[GitHub] 7[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

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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