tor-browser

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

anchor-position-non-anchored-fallback.html (800B)


      1 <!DOCTYPE html>
      2 <title>CSS Anchor Positioning Test: Invalidation of fallback without anchor references</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#fallback-apply">
      4 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
      5 <style>
      6  #anchor {
      7    anchor-name: --anchor;
      8    background: green;
      9    width: 100px;
     10    height: 100vh;
     11  }
     12  #anchored {
     13    background: green;
     14    top: anchor(--anchor bottom);
     15    width: 100px;
     16    height: 50px;
     17    position: absolute;
     18    position-try: --bottom;
     19  }
     20 
     21  @position-try --bottom {
     22    top: auto;
     23    bottom: 0px;
     24  }
     25 </style>
     26 <p>Test passes if there is a filled green square.</p>
     27 <div id="anchor"></div>
     28 <div id="anchored"></div>
     29 <script>
     30  anchor.offsetTop;
     31  anchor.style.height = "50px";
     32 </script>