<!DOCTYPE html> | |
<meta charset="utf-8" /> | |
<title>CSS Selectors Invalidation: :nth-child(... of class) when ancestor 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 id="toggler"> | |
<p>Ignored</p> | |
<p>Not ignored</p> | |
<p style="color: green">Not ignored</p> | |
<p>Not ignored</p> | |
<p style="color: green">Not ignored</p> | |
<p>Ignored</p> | |
</div> |