"scroll-behavior: smooth" cancels sequential bi-directional scroll
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
People
(Reporter: oss, Unassigned)
References
()
Details
Attachments
(1 file)
|
2.74 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Steps to reproduce:
For reproduction steps, see https://issues.chromium.org/u/2/issues/512157659
Actual results:
Only the last mutation affects scroll offset.
Expected results:
Both mutations should be applied.
Comment 1•4 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Panning and Zooming' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•4 days ago
|
||
This is a spec issue: from the spec text:
When a user agent is to perform a scroll of a scrolling box box, to a given position position, an associated element or pseudo-element element and optionally a scroll behavior behavior (which is "auto" if omitted), the following steps must be run:
1. Abort any ongoing smooth scroll for box.
So, with:
parent.scrollLeft = 0;
parent.scrollTop = 0;
The parent.scrollTop cancels parent.scrollLeft.
oss, would you mind filing a spec issue? Thanks!
(In reply to Hiroyuki Ikezoe (:hiro) from comment #2)
This is a spec issue: from the spec text:
When a user agent is to perform a scroll of a scrolling box box, to a given position position, an associated element or pseudo-element element and optionally a scroll behavior behavior (which is "auto" if omitted), the following steps must be run: 1. Abort any ongoing smooth scroll for box.So, with:
parent.scrollLeft = 0; parent.scrollTop = 0;The
parent.scrollTopcancelsparent.scrollLeft.oss, would you mind filing a spec issue? Thanks!
https://github.com/w3c/csswg-drafts/issues/13925#issue-4441322229
Comment 4•4 days ago
|
||
Thank you!
Description
•