tor-browser

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

offsetProps-002.html (780B)


      1 <!DOCTYPE html>
      2 <title>offsetTop inside relpos block in inline in multicol</title>
      3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      4 <link rel="help" href="https://issues.chromium.org/issues/434678447">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <div style="columns:1; margin-top:100px;">
      8  <div style="height:100px;"></div>
      9  <div style="display:inline;">
     10    <div id="expectedOffsetParent" style="position:relative; border:solid;">
     11      <div id="target" style="margin-top:10px; height:20px;"></div>
     12    </div>
     13  </div>
     14 </div>
     15 <script>
     16  test(() => {
     17    assert_equals(target.offsetParent, expectedOffsetParent);
     18    assert_equals(target.offsetTop, 10);
     19  }, "offsetTop");
     20 </script>