::grammar-error
Newly availableSince 202589% of users
Matches text that the browser has flagged as having a grammatical error. You can use this to change the color or style of the grammar correction underline.
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
::grammar-error {
text-decoration: underline wavy green;
/* makes grammar mistakes stand out with a green wavy line */
}::grammar-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