tor-browser

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

abspos-change-in-inline-block.html (740B)


      1 <!DOCTYPE html>
      2 <title>Chaning positioned objects in inline-block should not crash</title>
      3 <link rel="author" href="mailto:kojii@chromium.org">
      4 <link rel="help" href="https://crbug.com/1102128">
      5 <style>
      6 #container {
      7  width: 5ch;
      8 }
      9 #inline-block {
     10  display: inline-block;
     11  position: relative;
     12  width: 3ch;
     13 }
     14 #abs {
     15  position: absolute;
     16 }
     17 </style>
     18 <script src="/resources/testharness.js"></script>
     19 <script src="/resources/testharnessreport.js"></script>
     20 <body>
     21  <div id="container">
     22    <span>
     23      <span id="inline-block">
     24        <span id="abs"></span>
     25      </span>
     26    </span>
     27    1234
     28  </div>
     29 <script>
     30 test(() => {
     31  document.body.offsetTop;
     32  abs.style.top = '10px';
     33  document.body.offsetTop;
     34 }, 'No crash');
     35 </script>
     36 </body>