Web platform features explorer

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".

Status

Limited availability

MDN documentation

No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.

Browser support

  • Chrome 140 Released on 2025-09-02
  • Chrome Android 140 Released on 2025-09-02
  • Edge 140 Released on 2025-09-05
  • Firefox
  • Firefox for Android
  • Safari
  • Safari on iOS

Developer signals

Votes: 0

If you want this feature to be available in all browsers, vote for it by adding a thumbs up reaction (👍) to this GitHub issue, and leave a comment with more information.