Web platform features explorer

Scroll marker target pseudo-classes

The :target-current CSS pseudo-class selects the active scroll marker (as in ::scroll-marker), while the :target-after and :target-before pseudo-classes select the inactive markers preceding and following the active scroll marker.

Status

Limited availability

Browser support

  • Chrome 142 Released on 2025-10-28
  • Chrome Android 142 Released on 2025-10-28
  • Edge 142 Released on 2025-10-31
  • Firefox
  • Firefox for Android
  • Safari
  • Safari on iOS

Developer votes

Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.