chromium/third_party/blink/web_tests/wpt_internal/css/css-pseudo/spelling-error-color-002.html

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>CSS Pseudo-Elements Test: Change color of spelling error</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#selectordef-spelling-error">
<meta name="assert" content="This test checks that it's possible to modify the color of a spelling error through ::spelling-error pseudo-element.">
<link rel="match" href="spelling-error-color-002-ref.html">
<script src="../support/markers.js"></script>
<style>
  div {
    padding: 10px;
    background: cyan;
  }

  ::spelling-error {
    text-decoration-line: underline;
    text-decoration-color: cyan;
  }
</style>

<p>The test passes if you cannot see a spelling error marker in the next sentence.</p>
<div id="target" contenteditable spellcheck>The uikc brown fox.</div>

<script>
  target.focus();
  addSpellingMarker(target, 4, 8);
</script>
</html>