NEW267876
REGRESSION (iOS 17?): Adding or removing scroll-snap-align: none causes scroll position to jump backwards or forwards
https://bugs.webkit.org/show_bug.cgi?id=267876
Summary REGRESSION (iOS 17?): Adding or removing scroll-snap-align: none causes scrol...
amandabugreports
Reported 2024-01-22 13:18:00 PST
When using a scroll-snap container with at least three children ("slides"), if the container is scrolled to at least the second slide, and scroll-snap-align: none is added to or removed from the slide before it, the scroll position of the container will jump. Steps to reproduce: 1. Open test case on a mobile device running iOS 17: https://codepen.io/amandaesmith3/pen/ExMmrQo 2. Wait half a second so the scroll position of the container moves to slide 2, due to the included setTimeout. 3. Click the "disable first slide" button, which adds scroll-snap-align: none to slide 1. 4. Observe that the container's scroll position jumps to slide 3. 5. Click the "scroll to middle" button, which moves the scroll position back to slide 2. 6. Click the "enable first slide" button, which removes scroll-snap-align: none from slide 1. 7. Observe that the container's scroll position jumps to slide 1. Expected behavior: The scroll position of the container should not change when adding or removing scroll-snap-align: none on slide 1.
Attachments
amandabugreports
Comment 1 2024-01-23 07:39:46 PST
This looks to be a regression in iOS 17.
Radar WebKit Bug Importer
Comment 2 2024-01-23 13:19:51 PST
Note You need to log in before you can comment on or make changes to this bug.