Closed Bug 1986238 Opened 2 months ago Closed 2 months ago

Revert `instant` scroll behavior for "element.scrollIntoView()"

Categories

(Remote Protocol :: Agent, defect, P3)

defect
Points:
2

Tracking

(firefox-esr115 wontfix, firefox-esr128 wontfix, firefox-esr140 fix-optional, firefox142 wontfix, firefox143 wontfix, firefox144 fixed)

RESOLVED FIXED
144 Branch
Tracking Status
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.

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.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Pushed by hskupin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3ab78e3418a7 https://hg.mozilla.org/integration/autoland/rev/f50ed5ad3339 [remote] Revert scrollIntoView behavior to "instant". r=webdriver-reviewers,Sasha https://github.com/mozilla-firefox/firefox/commit/fcc6bc22cd30 https://hg.mozilla.org/integration/autoland/rev/0b5fcf6cf90a [wdspec] Update tests for scroll into view with behavior instant. r=webdriver-reviewers,Sasha

I don't think it makes sense to get it fixed for esr 115 and 128 which will soon be no longer supported.

Severity: -- → S3
Points: --- → 2
Priority: -- → P3
Whiteboard: [webdriver:m17]
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/54721 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m17] → [webdriver:m17], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
Upstream PR merged by moz-wptsync-bot

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.

Whiteboard: [webdriver:m17], [wptsync upstream] → [webdriver:m17][wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: