Applies one or more styles to any text on the page that the user has highlighted.
String that specifies one or more Cascading Style Sheets (CSS) attribute/value pairs.
The ::selection pseudo-element is the UI element fragments pseudo-element. It is used to select any part of the page that the user has highlighted, including text within an editable text field. This pseudo-element can be applied to the color and background-color properties.
This pseudo-class is defined in CSS Selectors Level 3 .