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