::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.

/* Usage Example */
::grammar-error {
  text-decoration: underline wavy green;
  /* makes grammar mistakes stand out with a green wavy line */
}
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC