[Webkit-unassigned] [Bug 221240] New: Applying scroll-snap-type resets scroll position to 0
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 1 19:12:08 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=221240
Bug ID: 221240
Summary: Applying scroll-snap-type resets scroll position to 0
Product: WebKit
Version: Safari 14
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: webkitbugs at philipf5.dev
Created attachment 418951
--> https://bugs.webkit.org/attachment.cgi?id=418951&action=review
Minimal code reproduction
I've come across what I *believe* is a bug in Safari (both macOS and iOS) with the scroll-snap-type CSS property. If I apply a scroll-snap-type property using JavaScript to an element that didn't already have it, the element's scroll position resets to 0. This contrasts with Chromium, in which the element's scroll position just jumps to the nearest snap point, which seems to be the more logical behavior.
This may be related to bug #214232 in some way, but this issue seemed slightly different (as acknowledged by a comment on that bug) and easier to reproduce, so I thought maybe it should be filed separately. I've attached a minimal code reproduction. The seemingly bugged behavior occurs for me in Safari 13, 14, and TP.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210202/6be7a98d/attachment.htm>
More information about the webkit-unassigned
mailing list