tor-browser

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

intrinsic-size-011.html (777B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: fit-content size keyword</title>
      3 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      4 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      5 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#valdef-width-fit-content">
      6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5032">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      8 <style>
      9 div {
     10  background: green;
     11  aspect-ratio: 2/1;
     12 }
     13 </style>
     14 
     15 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     16 
     17 <div style="height: 50px; width: fit-content;"></div>
     18 <!-- fit-content in the block axis is treated as auto -->
     19 <div style="height: fit-content; width: 100px;"></div>