Applies one or more styles to any text on the page that the user has highlighted.
A simple selector.
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, background-color, and -ms-high-contrast-adjust properties.
Styling properties on the ::selection pseudo-element do not support the "inherit" value.