blob: 1709ce70816a9f384b2ad86d74e03284aea7b50e [file] [log] [blame]
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Pseudo-Elements Test: ::target-text text-decoration</title>
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#selectordef-target-text">
<link rel="match" href="target-text-text-decoration-001-ref.html">
<meta name="assert" content="This test checks that ::target-text pseudo-element paints text-decorations defined by the pseudo-element.">
<style>
::target-text {
text-decoration: solid underline magenta;
}
</style>
<p>The test passes if the following line has a magenta underline.</p>
<div>Example</div>
<script>
location.href = "#:~:text=Example";
</script>