text-decoration in ::selection
Limited availability
The text-decoration
CSS property in a ::selection
rule sets the underline and other text decoration styles on the text a user has highlighted.
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 ❌