Bug 255646

Summary: [css-scroll-snap] search for text on page with scroll snap on html fails
Product: WebKit Reporter: Johannes Odland <johannes.odland>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
See Also: https://bugs.webkit.org/show_bug.cgi?id=255593
https://bugs.webkit.org/show_bug.cgi?id=255592
Attachments:
Description Flags
Screen recording of the issue none

Johannes Odland
Reported 2023-04-18 23:38:11 PDT
Created attachment 465978 [details] Screen recording of the issue Searching for a text on a page with scroll-snap on html fails. The user can find the text, but after the browser has scrolled the text into view it snaps back to the previous snap position. Steps to reproduce: 1. Open a page with scroll-snap on root (https://johannesodland.github.io/browserbugs/safari-scroll-snap-scroll-to-top-issue.html) 2. Tap the url-bar and enter a text. 3. Under "On this page" select "Find <text>" Expected result: The page is scrolled to a snap position where the text is visible and snaps to this position Actual result: The page is scrolled to a scroll position where the text is visible, but then snaps back to the previous snap position
Attachments
Screen recording of the issue (2.40 MB, video/mp4)
2023-04-18 23:38 PDT, Johannes Odland
no flags
Radar WebKit Bug Importer
Comment 1 2023-04-25 23:39:21 PDT
Johannes Odland
Comment 2 2023-05-22 04:27:05 PDT
Retested on iOS 16.5 The issue is still present
Johannes Odland
Comment 3 2023-09-19 09:04:44 PDT
Retested on iOS 17. The page still snaps back to the top after scrolling to show the searched text.
Note You need to log in before you can comment on or make changes to this bug.