tor-browser

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

visited-inheritance.html (551B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>inherited link color when modifying parent</title>
      4 <link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org">
      5 <link rel="match" href="visited-inheritance-ref.html">
      6 <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors">
      7 <style>
      8  div { color: red; }
      9  a { color: inherit; }
     10 </style>
     11 <main>
     12  <div id="parentdiv">
     13    <a href="" id="link">Visited link should be green</a>
     14  </div>
     15  <script>
     16  link.offsetTop;
     17  parentdiv.style.color = 'green';
     18  </script>
     19 </main>