tor-browser

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

aspect-ratio-intrinsic-size-004.html (595B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
      3 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
      4 <meta name="assert" content="This checks that an element with an aspect-ratio transfers its size when it also has stretch alignment.">
      5 <p>Test passes if there is a filled green square.</p>
      6 <div id="target" style="display: inline-flex; height: 50px; background: green;">
      7  <div style="aspect-ratio: 1/1;"></div>
      8 </div>
      9 <script>
     10 document.body.offsetTop;
     11 document.getElementById('target').style.height = '100px';
     12 </script>