tor-browser

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

has-style-sharing-001-ref.html (588B)


      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 <meta name="assert" content="Ensure that style sharing optimizations do not interfere with :has() selector matching.">
      6 <style>
      7 div {
      8  background: blue;
      9  padding: 1em;
     10  margin: 1em;
     11 }
     12 
     13 span {
     14  display: inline-block;
     15  width: 1em;
     16  height: 1em;
     17  background-color: pink;
     18 }
     19 </style>
     20 <div style="background: green;"><span></span></div>
     21 <div></div>