[Webkit-unassigned] [Bug 245722] Smooth scroll in viewport with scroll-snap fails on iOS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 24 04:57:36 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=245722
Johannes Odland <johannes.odland at nrk.no> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Smooth scroll on iframe |Smooth scroll in viewport
|fails on iOS |with scroll-snap fails on
| |iOS
--- Comment #5 from Johannes Odland <johannes.odland at nrk.no> ---
Changing title as the bug does not occur in iframes, it occurs when there is scroll-snapping in the main viewport.
eg:
```css
html {
scroll-snap-type: y mandatory;
}
.some-element {
scroll-snap-align: top;
}
```
```js {
document.querySelector('.some-element').scrollIntoView({ behavior: "smooth" }) // Fails
}
See https://codepen.io/johannesodland/pen/PoEaMWO and the attached video.
The code-pen must be tested in "debug mode" and not in "edit mode" as it can not be reproduced inside the iframe there.
--
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/20230124/7247ba69/attachment-0001.htm>
More information about the webkit-unassigned
mailing list