tor-browser

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

has-style-sharing-007.html (737B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
      3 <link rel="help" href="https://drafts.csswg.org/selectors-4/#relational">
      4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1869771">
      5 <link rel="match" href="has-style-sharing-007-ref.html">
      6 <meta name="assert" content="Ensure that style sharing optimizations do not interfere with :has() selector matching.">
      7 <style>
      8 .cousin {
      9  width: 1em;
     10  height: 1em;
     11  background: purple;
     12 }
     13 .special.cousin:not(:has(span)) {
     14  background: blue;
     15 }
     16 </style>
     17 <div class="sib">
     18  <div class="cousin"></div>
     19 </div>
     20 <br>
     21 <div class="sib">
     22  <div class="cousin special">
     23    <span></span>
     24  </div>
     25  <br>
     26  <div class="cousin special"></div>
     27 </div>