::spelling-error

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

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

Limited availability 83% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Not ready for production without a fallback.

121+
17.4+
121+
ESC