Revert `instant` scroll behavior for "element.scrollIntoView()"
Categories
(Remote Protocol :: Agent, defect, P3)
Tracking
(firefox-esr115 wontfix, firefox-esr128 wontfix, firefox-esr140 fix-optional, firefox142 wontfix, firefox143 wontfix, firefox144 fixed)
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 1 open bug, Regression, )
Details
(Keywords: regression, Whiteboard: [webdriver:m17][wptsync upstream][webdriver:relnote])
Attachments
(2 files)
As noticed on https://github.com/w3c/webdriver/issues/1923 the CSSOM removal of the instant scroll behavior was a mistake and got reverted in 2023. We missed that and never reverted this change. Also in Firefox we are now using auto since bug 1570605 landed, and should revert this change so that the instant behavior is always used again. Lets track this bug as a regression.
| Assignee | ||
Comment 1•2 months ago
|
||
Upstream PR to revert the behavior is at https://github.com/w3c/webdriver/pull/1924.
| Assignee | ||
Comment 2•2 months ago
|
||
For creating a test case we could use the example from:
https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior#setting_smooth_scroll_behavior
The scroll behavior could be set to smooth which is then inherited by scrollIntoView() and should cause the element to be scrolled into the viewport with a delay. At least for element click we should be able to validate that a click as done immediately after calling that method is not reaching the actual target element. Forcing instant should then do it correctly.
Updated•2 months ago
|
| Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
| Assignee | ||
Comment 6•2 months ago
|
||
I don't think it makes sense to get it fixed for esr 115 and 128 which will soon be no longer supported.
Comment 8•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f50ed5ad3339
https://hg.mozilla.org/mozilla-central/rev/0b5fcf6cf90a
| Assignee | ||
Comment 10•1 month ago
|
||
Given that no one complained about it yet lets not immediately uplift. If there will be reports by users and they have to rely on ESR 140 we can consider uplifting the patch.
| Assignee | ||
Updated•1 month ago
|
Description
•