tor-browser

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

dynamic-change-simplified-layout-002.html (683B)


      1 <!DOCTYPE html>
      2 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
      3 <link rel="help" href="https://drafts.csswg.org/css-flexbox/" />
      4 <meta name="assert" content="Tests that certain dynamic changes don't lead to a flex item being sized as zero, instead of its stretched size." />
      5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      6 <div style="display: flex; width: 100px; height: 100px; background: red;">
      7  <div style="contain: layout size; height: 100px; flex: 1; background: green;">
      8    <div id="target"></div>
      9  </div>
     10 </div>
     11 <script>
     12 document.body.offsetTop;
     13 document.getElementById('target').style.width = '1px';
     14 </script>