tor-browser

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

position-absolute-dynamic-relayout-003.html (758B)


      1 <!DOCTYPE html>
      2 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      3 <link rel="help" href="https://www.w3.org/TR/css-position-3/" />
      4 <meta name="assert" content="This test checks that a dynamic OOF-positioned change doesn't cause children to paint differently." />
      5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      6 <div style="display: flex; position: relative; width: 100px; height: 100px;">
      7  <div style="order: 2; margin-left: -100px; width: 100px; background: green;"></div>
      8  <div style="order: 1; width: 100px; background: red;"></div>
      9  <div id="target" style="position: absolute;"></div>
     10 </div>
     11 <script>
     12  document.body.offsetTop;
     13  document.getElementById('target').style.top = '10px';
     14 </script>