tor-browser

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

anchor-position-multicol-010.html (1321B)


      1 <!DOCTYPE html>
      2 <title>Anchor-positioned elements in multicol with spanner, vertical-rl</title>
      3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      4 <link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#anchor-pos">
      5 <style>
      6  .anchor {
      7    anchor-name: --tjor;
      8    inline-size: 50px;
      9    background: green;
     10  }
     11  .pos {
     12    position: absolute;
     13    position-anchor: --tjor;
     14    inset-inline-start: anchor(outside);
     15    inset-block-start: anchor(start);
     16    inline-size: 50px;
     17    background: green;
     18  }
     19 </style>
     20 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     21 <div style="writing-mode:vertical-rl; columns:2; inline-size:300px;">
     22  <div style="position:relative; block-size:100px;">
     23    <div style="inline-size:100px; block-size:50px; background:red;">
     24      <div class="anchor" style="block-size:50px;"></div>
     25      <div class="pos" style="block-size:50px;"></div>
     26    </div>
     27  </div>
     28  <div style="column-span:all; inline-size:100px; block-size:10px; background:green; "></div>
     29  <div style="position:relative; block-size:80px;">
     30    <div style="inline-size:100px; block-size:40px; background:red;">
     31      <div class="anchor" style="block-size:40px;"></div>
     32      <div class="pos" style="block-size:40px;"></div>
     33    </div>
     34  </div>
     35 </div>