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