MDN self-hosted library · e01.org

`::grammar-error` CSS pseudo-element

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
::grammar-error {
  /* ... */
}
html
<p contenteditable spellcheck="true">
  My friends is coming to the party tonight.
</p>
css
::grammar-error {
  text-decoration: underline red;
  color: red;
}