tor-browser

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

block-end-aligned-abspos.html (1074B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      3 <link rel="help" href="https://www.w3.org/TR/css-break-3/#transforms">
      4 <link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#abs-non-replaced-height">
      5 <style>
      6  body { overflow:scroll; } /* Auto scrollbars may hide bugs. */
      7  #container { columns:2; height:200px; column-fill:auto; background:white; }
      8  #abspos { position:absolute; width:50px; bottom:0; background:blue; }
      9  #abspos > div { height:10px; background:white; }
     10 </style>
     11 <p>There should be two identical blue squares below.</p>
     12 <div id="container">
     13  <div style="position:relative; height:100%;">
     14    <div id="abspos" data-offset-y="80" data-expected-height="120">
     15      <div style="margin:50px 0;" data-offset-y="50"></div>
     16      <div data-offset-y="110"></div>
     17    </div>
     18  </div>
     19 </div>
     20 <script src="/resources/testharness.js"></script>
     21 <script src="/resources/testharnessreport.js"></script>
     22 <script src="/resources/check-layout-th.js"></script>
     23 <script>
     24  checkLayout("[data-offset-y]");
     25 </script>