🔧 Pseudo-class ::selection
This subclass allows you to apply a style to a selected element. You can set both the color of the selection and the color of the text when it is selected.
Accepted properties:
•
•
•
•
•
•
•
•
This subclass allows you to apply a style to a selected element. You can set both the color of the selection and the color of the text when it is selected.
Accepted properties:
•
color — The color of the selected text.•
background-color — The background color of the selected text.•
cursor — The cursor displayed during text selection.•
caret-color — The color of the caret (blinking vertical line) when editing text.•
outline — The outline displayed around the selected text.•
text-decoration — Text decoration (e.g., underline, strikethrough).•
text-emphasis-color — The color of emphasis marks (e.g., dots, circles).•
text-shadow — The shadow of the text.👍8❤3