WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
264850
Incorrect scroll snap behavior with this example
https://bugs.webkit.org/show_bug.cgi?id=264850
Summary
Incorrect scroll snap behavior with this example
Simon Fraser (smfr)
Reported
2023-11-14 17:39:18 PST
https://github.com/w3c/csswg-drafts/issues/9187
points to this nested snap point example:
https://flackr.github.io/web-demos/css-scroll-snap/nested/sections.html
In Safari, I get no scroll snapping at all on that page. Firefox does snapping.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-11-14 17:39:40 PST
<
rdar://problem/118428551
>
Guido Bouman
Comment 2
2024-02-04 13:58:06 PST
For me Safari 17.1 does perform some form of scroll snapping, but incorrectly. There at least two issues: - The end of the scrollable region snaps back to the last scroll anchor, making the last bit of content unreachable. - When scroll back from end end to the start, the whenever a scroll anchor come into view, Safar snaps to the top of the element, instead of snapping to the bottom as explained in example #9 of the spec:
https://drafts.csswg.org/css-scroll-snap-1/#example-e9209b74
Guido Bouman
Comment 3
2024-02-04 13:59:21 PST
Chromium has implemented the correct behavior, Firefox is similar to Safari, and has an open bug.
Guido Bouman
Comment 4
2024-02-05 00:56:43 PST
CSSWG Decision (
https://github.com/w3c/csswg-drafts/issues/6863#issuecomment-1854300040
):
> any postion within the overlarge snap area is a valid snap position, as defined in the (clarified) spec
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug