Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/selectors/invalidation/negated-never-matches-negated-first-of-type-when-ancestor-changes.html
<!doctype html> <meta charset="utf-8"> <html class="reftest-wait"> <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1926164"> <link rel="author" title="Zach Hoffman" href="mailto:zach@zrhoffman.net"> <link rel="match" href="negated-never-matches-negated-first-of-type-when-ancestor-changes-ref.html"> <link rel="help" href="https://drafts.csswg.org/selectors-4/#the-first-of-type-pseudo"> <style> .some-hidden > :not(.never-matches:not(:first-of-type)) { display: none; } .to-hide { color: red; } </style> <div id="ancestor"> <div class="to-hide">Hidden</div> <div class="to-hide">Hidden</div> </div> <script> document.documentElement.offsetTop; (async () => { for (let i = 0; i < 10; i++) { await new Promise(r => requestAnimationFrame(r)); } ancestor.classList.add("some-hidden"); document.documentElement.classList.remove('reftest-wait'); })(); </script> </html>
<!doctype html> <meta charset="utf-8">