Bug 250578 - Different behaviour for scrollIntoView
Summary: Different behaviour for scrollIntoView
Status: RESOLVED DUPLICATE of bug 171099
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-13 08:31 PST by Rob Buis
Modified: 2023-01-13 11:10 PST (History)
1 user (show)

See Also:


Attachments
Test case (358 bytes, text/html)
2023-01-13 08:32 PST, Rob Buis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Buis 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.
Comment 1 Rob Buis 2023-01-13 08:32:36 PST
Created attachment 464487 [details]
Test case
Comment 2 Simon Fraser (smfr) 2023-01-13 10:25:56 PST
That's because they implement scroll anchoring and WebKit does not.
Comment 3 Rob Buis 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.
Comment 4 Simon Fraser (smfr) 2023-01-13 10:56:26 PST
https://bugs.webkit.org/show_bug.cgi?id=171099
Comment 5 Rob Buis 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!
Comment 6 Rob Buis 2023-01-13 11:10:33 PST

*** This bug has been marked as a duplicate of bug 171099 ***