blob: d90d5d96630d05ab88430b88fe4a4ad8985a6fac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!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;
color: initial;
background: transparent;
}
</style>
<p>The test passes if the following line has a magenta underline.</p>
<div>Example</div>
<script>
location.href = "#:~:text=Example";
</script>
|