Bug 225387 - scroll-padding not working correctly when scroll target is partially out of scroll port
Summary: scroll-padding not working correctly when scroll target is partially out of s...
Status: RESOLVED DUPLICATE of bug 42593
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-05-05 02:21 PDT by Martin Robinson
Modified: 2021-05-31 03:56 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Robinson 2021-05-05 02:21:53 PDT
Copied from 222259:

For additional context, I believe this may occur in STP too. Please compare the behavior of Safari to Firefox on https://codepen.io/comp615/pen/bGqbrEx

Click the "right" button a few times.

In Firefox (correct), on hitting C, D, E...the scroll is moved so that the selected item aligns with scroll-padding taken into account.

In Safari, (Wrong), D does not move the scroller (incorrect because it's behind the scroll-adding)...E also does not (wholly wrong because it's not even in the scroll frame)... and from there it moves the item alternatingly correctly
Comment 1 Radar WebKit Bug Importer 2021-05-12 02:22:15 PDT
<rdar://problem/77894395>
Comment 2 Martin Robinson 2021-05-31 03:56:50 PDT
Looks like this behavior was added purposefully, but it feels like it isn't spec compliant.

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