Bug 227580

Summary: Full page scroll snap breaks in iOS Safari 15
Product: WebKit Reporter: Johannes Odland <johannes.odland>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mrobinson, simon.fraser
Priority: P2    
Version: Other   
Hardware: iPhone / iPad   
OS: Other   
Attachments:
Description Flags
Movie showing page snapping back to first snap target none

Description Johannes Odland 2021-07-01 04:19:23 PDT
Created attachment 432677 [details]
Movie showing page snapping back to first snap target

Detected in Safari iOS 15 simulator

How to reproduce:

1. Go to a page with `html {scroll-snap-type: y mandatory;}` and snap target elements sized in vh, such as this codepen: https://codepen.io/johannesodland/pen/zYwGvXx
2. Try to scroll down

Expected result:
Page snaps to next scroll target element

Actual result:
Page snaps back to first target element


The bug might be caused by vh units updating as the user scrolls in iOS 15.

This works fine in 14.5
Comment 1 Simon Fraser (smfr) 2021-07-01 11:04:45 PDT

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