Bug 250578

Summary: Different behaviour for scrollIntoView
Product: WebKit Reporter: Rob Buis <rbuis>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case none

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 ***