::grammar-error
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.
Quick example
::grammar-error {
text-decoration: underline wavy green;
/* makes grammar mistakes stand out with a green wavy line */
}::grammar-error Browser Support
Newly availableSince 202583% global usage
Since 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.
121+
137+
26.2+
121+