tor-browser

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

grid-aspect-ratio-025.html (893B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: the minimum contribution of the grid items in
      3  inline axis for a percentage inline size and min-size:auto</title>
      4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      5 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      6 <link rel="help" href="https://drafts.csswg.org/css-grid/#min-size-auto">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      8 <style>
      9  #reference-overlapped-red {
     10    position: absolute;
     11    background-color: red;
     12    width: 100px;
     13    height: 100px;
     14    z-index: -1;
     15  }
     16 </style>
     17 
     18 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     19 
     20 <div id="reference-overlapped-red"></div>
     21 <div style="display: grid; width: min-content; height: 100px; background: green;">
     22  <div style="height: 100px; width: 50%; aspect-ratio: 1/1;"></div>
     23 </div>