::selection
Limited availability
The ::selection
CSS pseudo-element selects text a user has highlighted.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 1 Released on 2008-12-11
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 62 Released on 2018-09-05
- Firefox for Android 62 Released on 2018-09-05
- Safari 1.1 Released on 2003-10-24
- Safari on iOS ❌
Baseline availability blocked since September 2018 by Safari on iOS (77 months)
Specifications
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature