tor-browser

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

grid-aspect-ratio-021.html (942B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: the block size should be transferred from the inline size.</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="help" href="https://drafts.csswg.org/css-grid/#transferred-size-suggestion">
      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; grid-template-rows: minmax(auto, 50px); width: 100px;">
     22  <div style="width: 100px; aspect-ratio: 1/1; background: green;"></div>
     23 </div>