::spelling-error

A pseudo-element that allows you to customize the styling of words that the browser identifies as having spelling errors.

/* 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;
}
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