tor-browser

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

position-absolute-dynamic-relayout-001.html (1074B)


      1 <!DOCTYPE html>
      2 <html class='reftest-wait'>
      3 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
      4 <link rel="help" href="https://www.w3.org/TR/css-position-3/" />
      5 <meta name="assert" content="This test checks that a dynamic change in constraints does not crash the renderer."/>
      6 <script src="/common/reftest-wait.js"></script>
      7 <p>Test passes if there is a filled green square.</p>
      8 <div style="display: flex; width: 100px; height: 100px; overflow: hidden; position: relative;"> <!-- relayout boundary -->
      9  <div style="position: relative;">
     10    <div style="display: flex; position: relative; width: 100px; height: 50px; overflow: hidden;"> <!-- relayout boundary -->
     11      <div id="target1" style="position: absolute; width: 10px; height: 50px; background: green;"></div>
     12    </div>
     13    <div id="target2" style="position: absolute; width: 10px; height: 50px; background: green;"></div>
     14  </div>
     15 </div>
     16 <script>
     17 document.body.offsetTop;
     18 target2.style.width = '100px';
     19 target1.style.width = '100px';
     20 document.body.offsetTop;
     21 takeScreenshot();
     22 </script>