BASELINE NowYouCanUse.com
Limited Availability Scrolling

scrollIntoView() container

The container option of the scrollIntoView() method sets which ancestor scroll container to scroll. The "nearest" value scrolls only the nearest ancestor, instead of the default "all".
Baseline Status: This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Sep 5, 2025.
Desktop Browser Engine Support
Google Chrome
140
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
—
Unsupported
Microsoft Edge
140
Supported
Mobile Browser Engine Support
Chrome Android
140
Firefox Android
—
Safari iOS
—
Specifications and References
id: scroll-into-view-container