tor-browser

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

not-links.html (722B)


      1 <!DOCTYPE html>
      2 <title>Test that *:not(:link):not(:visited) does not match links</title>
      3 <link rel="match" href="not-links-ref.html">
      4 <link rel="help" href="https://drafts.csswg.org/selectors-4/#negation">
      5 <style>
      6  * {
      7    /* Browsers typically ignore the :visited alpha and use the unvisited
      8       alpha instead, which by default is 0, in which case a failure would
      9       not be detected. */
     10    background-color: white;
     11  }
     12  div *:not(:link):not(:visited) {
     13    background-color: green;
     14  }
     15 </style>
     16 <body>
     17  <div>
     18    <a href="#">Unvisited (<span>Green</span>)</a>
     19    <a href="#">Visited (<span>Green</span>)</a>
     20    <span>Green</span>
     21  </div>
     22  <p>
     23    Only "Green" should have green backgrounds.
     24  </p>
     25 </body>