tor-browser

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

getClientRects-br-htb-rtl.html (679B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
      3 <link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
      4 <div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:horizontal-tb; direction:rtl;">
      5  <br id="child">
      6 </div>
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script>
     10  test(()=>{
     11      let r = document.getElementById("child").getClientRects()[0];
     12      assert_equals(r.left, 200);
     13      assert_greater_than_equal(r.top, 0);
     14      assert_less_than(r.top, 50);
     15  }, "Position of the BR element");
     16 </script>