You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
The Window scrollTo API browser compatibility table specifies that the options.behavior is supported since Safari 14 without the support of the smooth behavior:
Safari does not have support for the smooth scroll behavior.
What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
From Safari 15.4 they introduced the support of smooth scroll:
Added support for the CSS scroll-behavior property and ScrollOptions, allowing smooth scrolling to anchors or via JavaScript.
Moreover, looking at the documentation of WebKit 15.4 we can confirm the support of the smooth behavior via css but also Window.scrollTo().
Developers can also control scroll behavior for an element with either the CSS scroll-behavior property or the behavior option in window.scroll(), window.scrollTo(), and window.scrollBy() methods in JavaScript. This new support gives developers the ability to choose between instantly jumping to a position in the viewport or smoothly animating the scroll operation.
Did you test this? If so, how?
Yes I did (using the iOS simulator offered by Xcode with iOS 15.4 which uses Safari 15.4).
You can test yourself with any version of Safari >= 15.4
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
The Window scrollTo API browser compatibility table specifies that the options.behavior is supported since Safari 14 without the support of the smooth behavior:
What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
From Safari 15.4 they introduced the support of smooth scroll:
Moreover, looking at the documentation of WebKit 15.4 we can confirm the support of the smooth behavior via css but also Window.scrollTo().
Did you test this? If so, how?
Yes I did (using the iOS simulator offered by Xcode with iOS 15.4 which uses Safari 15.4).
You can test yourself with any version of Safari >= 15.4
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
Safari release notes: https://developer.apple.com/documentation/safari-release-notes/safari-15_4-release-notes
WebKit release notes: https://webkit.org/blog/12445/new-webkit-features-in-safari-15-4/
Do you have anything more you want to share?
No response
MDN URL
No response
MDN metadata
No response
The text was updated successfully, but these errors were encountered: