Web platform features explorer

text-decoration in ::selection

The text-decoration CSS property in a ::selection rule sets the underline and other text decoration styles on the text a user has highlighted.

Status

Limited availability

MDN documentation

Browser support

  • Chrome 105 Released on 2022-09-02
  • Chrome Android 105 Released on 2022-09-02
  • Edge 105 Released on 2022-09-01
  • Firefox See bugzil.la/1612598
  • Firefox for Android See bugzil.la/1612598
  • Safari
  • Safari on iOS