::spelling-error
A pseudo-element that allows you to customize the styling of words that the browser identifies as having spelling errors.
Syntax
/* Usage Example */
::spelling-error {
/* Customizes the look of misspelled words in editable fields */
background-color: rgba(255, 0, 0, 0.2);
text-decoration: underline wavy red;
}
::spelling-error Browser support
Limited availability
Since
2020 83% global usage
This feature is not Baseline because it does not work in some of the most widely-used browsers.
121+
17.4+
121+