summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/invalidation/nth-child-when-sibling-changes-ref.html
blob: 9a397529900cbb8e6248d94dccd1e52670f83ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<meta charset="utf-8" />
<title>CSS Selectors Invalidation: :nth-child(... of class) when sibling changes</title>
<link rel="author" title="Steinar H. Gunderson" href="sesse@chromium.org">
<link rel="help" href="https://w3c.github.io/csswg-drafts/selectors-4/#child-index">
<div>
  <p>Ignored</p>
  <p>Odd; used to be green, should not be since no sibling</p>
  <p>Even, so should not be green</p>
  <p>Odd, but no sibling, so should not be green</p>
  <p>Even, so should not be green</p>
  <p>Ignored</p>
  <p style="color: green">Odd, should be green</p>
</div>