tor-browser

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

pseudo-element-implicit-anchor.html (637B)


      1 <!DOCTYPE html>
      2 <title>CSS Anchor Positioning: Originating element implicit anchor for pseudo elements</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#implicit">
      4 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
      5 <style>
      6  #anchor::after {
      7    content: "";
      8    position: absolute;
      9    position-anchor: auto;
     10    width: 100px;
     11    height: 100px;
     12    bottom: anchor(top);
     13    background: green;
     14  }
     15  #ref {
     16    width: 100px;
     17    height: 100px;
     18    background: red;
     19  }
     20 </style>
     21 <p>Test passes if there is a filled green square.</p>
     22 <div id="ref"></div>
     23 <div id="anchor"></div>