::spelling-error
Newly availableSince 202589% of users
A pseudo-element that allows you to customize the styling of words that the browser identifies as having spelling errors.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since December 2025. Widely available around June 2028.
See how modern your own CSS is.Check your CSS →
Quick 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
BaselineNewly availableSince 2025 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.Works in all modern browsers. May need a fallback for older browsers.
Usage89%of people can use this11% use a browser without it.
Browsers
121+
137+
26.2+
121+Mobile
121+Android
137+Android
26.2+iOS