chromium/third_party/blink/web_tests/wpt_internal/css/css-pseudo/grammar-error-color-003.html

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>CSS Pseudo-Elements Test: Set property in ::grammar-error</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#selectordef-grammar-error">
<meta name="assert" content="This test checks that setting a property in ::grammar-error pseudo element, the grammar error marker color is still the default one.">
<link rel="match" href="grammar-error-color-003-ref.html">
<script src="../support/markers.js"></script>
<style>
  ::grammar-error {
    background: transparent;
  }
</style>

<p>The test passes if "quikc" has a grammar error marker that is in the default color (usually green).</p>
<div id="target" contenteditable spellcheck>The quikc brown fox.</div>

<script>
  target.focus();
  addGrammarMarker(target, 4, 9);
</script>
</html>