scroll-target-group

Limited availability

The scroll-target-group CSS property sets the container where anchor links act as scroll markers. Using selectors such as :target-current, you can style elements when a target has scrolled into view. It's an alternative to the ::scroll-marker-group pseudo-element, which generates scroll markers.

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 Not supported
  • Firefox for Android Not supported
  • Safari Not supported
  • Safari on iOS Not supported

Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.

Developer use cases

  • Using it in a long data document that has a side menu to navigate. This allows the user to see where they are in the document while scrolling and also keeping an 'active' state with `:target-current` if the focus is removed from the `<a>` tag when they click away to something else. Using it in a long data document that has a side menu to navigate. This allows the user to see where they are in the document while scrolling and also keeping an 'active' state with `:target-current` if the focus is removed from the `<a>` tag when they click away to something else. [see original comment]