<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>CSS Pseudo-Elements Test: Shadow on a grammar error</title>
<link rel="author" title="Stephen Chenney" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#selectordef-grammar-error">
<meta name="assert" content="Verify that a shadow on a grammar marker is rendered correctly.">
<link rel="match" href="grammar-error-shadow-dynamic-ref.html">
<script src="../support/markers.js"></script>
<style>
::grammar-error {
color: green;
text-shadow: 0.25em 0.25em 3px rgba(0,0,128,0.5);
text-decoration-line: none;
}
div {
color: black;
text-shadow: 0.1em 0.1em 3px rgba(0,0,0,0.5);
}
</style>
<p>The test passes if "quikc" has a grammar error marker that is green with no shadow.</p>
<div id="target" contenteditable spellcheck>The quikc brown fox.</div>
<script>
target.focus();
addGrammarMarker(target, 4, 9);
requestAnimationFrame(() => requestAnimationFrame(() => {
document.styleSheets[0].cssRules[0].style.textShadow = "";
takeScreenshot();
}));
</script>
</html>