tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

negated-has-in-nonsubject-position.html (825B)


      1 <!DOCTYPE html>
      2 <!doctype html>
      3 <meta charset="utf-8">
      4 <html class="reftest-wait">
      5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1993226">
      6 <link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      8 <style>
      9 .c {
     10  width: 100px;
     11  height: 100px;
     12  background: green;
     13 }
     14 .b:not(.ancestor:has(+ .sibling) .a) .c {
     15  background: red;
     16 }
     17 </style>
     18 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     19 <div class=ancestor>
     20  <div id=dut class=b>
     21    <div class=c></div>
     22  </div>
     23 </div>
     24 <div class=sibling></div>
     25 <script>
     26 onload = () => {
     27  dut.classList.toggle('a');
     28  dut.getBoundingClientRect(); // Ensure layout flush.
     29  document.documentElement.classList.remove('reftest-wait');
     30 };
     31 </script>