tor-browser

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

intrinsic-size-013.html (1135B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: max-content size contribution with border-box</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="match" href="../../reference/ref-filled-green-100px-square.xht" />
      6 
      7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      8 
      9 <div style="width: max-content; height: 25px; background: green;">
     10  <div style="height: 25px; aspect-ratio: 4/1; box-sizing: border-box; padding-top: 25px;"></div>
     11 </div>
     12 
     13 <div style="width: max-content; height: 25px; background: green;">
     14  <div style="height: 10px; aspect-ratio: 4/1; min-height: 25px; box-sizing: border-box; padding-top: 15px;"></div>
     15 </div>
     16 
     17 <div style="width: max-content; height: 25px; background: green;">
     18  <div style="height: 100px; aspect-ratio: 4/1; max-height: 25px; box-sizing: border-box; padding-top: 15px;"></div>
     19 </div>
     20 
     21 <div style="width: max-content; height: 25px; background: green;">
     22  <div style="height: 40px; aspect-ratio: auto 4/1; box-sizing: border-box; padding-top: 15px;"></div>
     23 </div>