tor-browser

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

offsetParent-block-in-inline.html (499B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.csswg.org/cssom-view-1/#extensions-to-the-htmlelement-interface">
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <span id="parent" style="position:relative;">
      6    <div id="target"></div>
      7 </span>
      8 <script>
      9 test(function() {
     10  const target = document.getElementById('target');
     11  const parent = document.getElementById('parent');
     12  assert_equals(target.offsetParent, parent);
     13 });
     14 </script>