tor-browser

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

has-visited.html (801B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>:has combined with :visited/:link</title>
      4 <link rel="author" title="Byungwoo Lee" href="mailto:blee@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/selectors/#relational">
      6 <link rel="match" href="has-visited-ref.html">
      7 <style>
      8  #parent1:has(:link) {
      9    color: green;
     10  }
     11  #parent2:has(:visited) {
     12    color: yellow;
     13  }
     14  #parent3:has(:any-link) {
     15    color: yellowgreen;
     16  }
     17 </style>
     18 <main>
     19  <div id=parent1>
     20    <div>parent color should be green with <a href="">visited link</a>.</div>
     21  </div>
     22  <div id=parent2>
     23    <div>parent color should be black with <a href="unvisited">unvisited link</a>.</div>
     24  </div>
     25  <div id=parent3>
     26    <div>parent color should be yellowgreen with <a href="unvisited">any link</a>.</div>
     27  </div>
     28 </main>