tor-browser

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

has-style-sharing-005.html (780B)


      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=1793012">
      5 <link rel="match" href="has-style-sharing-005-ref.html">
      6 <meta name="assert" content="Ensure that style sharing optimizations do not interfere with :has() selector matching.">
      7 <style>
      8 div {
      9  background: blue;
     10  margin: 1em;
     11  padding: 1em;
     12 }
     13 
     14 span {
     15  display: inline-block;
     16  width: 1em;
     17  height: 1em;
     18 }
     19 
     20 :has(> .a) .b .c {
     21  background: green;
     22 }
     23 
     24 .c {
     25  background: purple;
     26 }
     27 </style>
     28 <div><span class="b"><span class="c"></span></span><span class="a"></span></div>
     29 <div><span class="b"><span class="c"></span></span><span></span></div>