summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/target-text-008-ref.html
blob: d9082b822fe719263189ed8e0c87c66ca35d5d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>CSS Pseudo-Elements Test: Reference</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<style>
  a::target-text {
    color: lime;
    background: green;
  }
</style>

<p>Test passes if the link below has lime color and green background.</p>
<a href="">visited</a>

<script>
  window.location.hash = "#:~:text=visited";
</script>