[wpt-sync] Sync PR 48163 - [blink] Fix smooth-scroll-in-load-event.html.
Categories
(Core :: DOM: CSS Object Model, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox132 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
71.16 KB,
text/plain
|
Details |
Sync web-platform-tests PR 48163 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/48163
Details from upstream follow.
François Doray <fdoray@chromium.org> wrote:
[blink] Fix smooth-scroll-in-load-event.html.
The test fails with this error on most platforms:
[FAIL] Smooth scroll in load event handler
assert_equals: Final value of scrollLeft expected 800 but got 0This is because observeScrolling() completes after 20 rAF without
change to the scroll position, which is not enough for the scroll
animation to start on most platforms. This CL fixes the test by
replacing observeScrolling() with a function that waits for the
"scrollend" event.This CL also moves the function to wait to a "scrollend" event from
css/css-scroll-snap/support/common.js to
dom/events/scrolling/scroll_support.js for better reusability, and
renames it to waitForScrollEndFallbackToDelayWithoutScrollEvent() to
convey that it has a different behavior when the "scrollend" event is
not available.Fixed: 327468395
Change-Id: I63d89cd1d0bf0973543aa769765eac00b62ba87cReviewed-on: https://chromium-review.googlesource.com/5823436
WPT-Export-Revision: 4efafa45cbd3b3bc2126e7ecbf6ba0c81ec10cdf
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 1•4 months ago
|
||
Assignee | ||
Comment 2•4 months ago
|
||
Comment 4•4 months ago
|
||
bugherder |
Description
•