RESOLVED DUPLICATE of bug 171099 250578
Different behaviour for scrollIntoView
https://bugs.webkit.org/show_bug.cgi?id=250578
Summary Different behaviour for scrollIntoView
Rob Buis
Reported 2023-01-13 08:31:57 PST
When using scrollIntoView to scroll to an element into view and then deleting an element above it, the element does not remain anchored in the test case. This behaviour is different tp chromium and Firefox since there the element remains anchored an in the viewport.
Attachments
Test case (358 bytes, text/html)
2023-01-13 08:32 PST, Rob Buis
no flags
Rob Buis
Comment 1 2023-01-13 08:32:36 PST
Created attachment 464487 [details] Test case
Simon Fraser (smfr)
Comment 2 2023-01-13 10:25:56 PST
That's because they implement scroll anchoring and WebKit does not.
Rob Buis
Comment 3 2023-01-13 10:28:02 PST
(In reply to Simon Fraser (smfr) from comment #2) > That's because they implement scroll anchoring and WebKit does not. Is there an existing bug for that feature? If so I will close this bug.
Simon Fraser (smfr)
Comment 4 2023-01-13 10:56:26 PST
Rob Buis
Comment 5 2023-01-13 11:10:13 PST
(In reply to Simon Fraser (smfr) from comment #4) > https://bugs.webkit.org/show_bug.cgi?id=171099 Thanks!
Rob Buis
Comment 6 2023-01-13 11:10:33 PST
*** This bug has been marked as a duplicate of bug 171099 ***
Note You need to log in before you can comment on or make changes to this bug.