Closed Bug 1763094 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33509 - Fix element doesn't scroll back to initial position

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yupei Wang <perryuwang@tencent.com> wrote:

Fix element doesn't scroll back to initial position

When scrollTo exits early because it's already at the target position,
cancel the scroll animation in pending.

Bug: 1138690
Change-Id: If5805f5242a5159429ec75f7110325204b23f96a
Reviewed-on: https://chromium-review.googlesource.com/3560870
WPT-Export-Revision: 7df49e8d407f3ee6486f8c5c97fc17e2399798b6

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/01a0073cf70d
[wpt PR 33509] - Fix element doesn't scroll back to initial position, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.