summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/not-links-ref.html
blob: 1b2515a5cd1ec257fa8ebda2041699f5d4d09230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<title>Test that *:not(:link):not(:visited) does not match links</title>
<style>
  span {
    background-color: green;
  }
</style>
<body>
  <div>
    <a href="#">Unvisited (<span>Green</span>)</a>
    <a href="#">Visited (<span>Green</span>)</a>
    <span>Green</span>
  </div>
  <p>
    Only "Green" should have green backgrounds.
  </p>
</body>