tor-browser

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

grid-aspect-ratio-005.html (945B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: grid item (ratio-dependent: inline, on replaced elements) with auto && ratio</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-grid/#grid-item-sizing">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      7 <style>
      8  #reference-overlapped-red {
      9    position: absolute;
     10    background-color: red;
     11    width: 100px;
     12    height: 100px;
     13    z-index: -1;
     14  }
     15 </style>
     16 
     17 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     18 
     19 <div id="reference-overlapped-red"></div>
     20 <div style="display: grid; grid-template-columns: repeat(2, min-content);">
     21  <img src="support/20x50-green.png" style="height: 100px; aspect-ratio: auto 1/1;">
     22  <div style="background: green; width: 60px; height: 100px;"></div>
     23 </div>