tor-browser

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

has-nesting.html (505B)


      1 <!doctype html>
      2 <title>Nested has shouldn't match</title>
      3 <link rel="help" href="https://drafts.csswg.org/selectors/#relational">
      4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1864647">
      5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/9600">
      6 <link rel="match" href="has-nesting-ref.html">
      7 <style>
      8 ul { background: green }
      9 
     10 li:has(strong) {
     11  display: none;
     12 
     13  :has(> &) {
     14    background: red;
     15  }
     16 }
     17 </style>
     18 <ul>
     19  <li><strong>Foo</strong></li>
     20  <li>Bar</li>
     21 </ul>