::selection CSS pseudo-elementExternal Link

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The ::selection CSS pseudo-element applies rules to the portion of a document that has been highlighted (e.g., selected with the mouse or another pointing device) by the user.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 84.34% of all users can use this feature, 84.34% fully supported, 0% partially supported
✓Supported
✗Not supported
Partial support
Prefixed