tor-browser

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

grid-aspect-ratio-027.html (1055B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: zero intrinsic size for grid items with overflow:auto
      3  even with an aspect-ratio</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="help" href="https://drafts.csswg.org/css-grid/#algo-content">
      8 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      9 <style>
     10  #reference-overlapped-red {
     11    position: absolute;
     12    background-color: red;
     13    width: 100px;
     14    height: 100px;
     15    z-index: -1;
     16  }
     17 </style>
     18 
     19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     20 
     21 <div id="reference-overlapped-red"></div>
     22 <div style="display: grid; width: min-content; grid-auto-flow: column; height: 100px; background: green;">
     23  <div style="height: 100px; aspect-ratio: 2/1; overflow:auto"></div>
     24  <div style="height: 100px; aspect-ratio: 1/2; min-width: 100px; overflow:auto"></div>
     25 </div>