tor-browser

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

grid-aspect-ratio-017.html (1084B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: grid track size should respect aspect-ratio when using
      3  intrinsic size keywords in grid items with orthogonal writing mode</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/#algo-track-sizing">
      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  .item {
     17    aspect-ratio: 2/1;
     18    writing-mode: vertical-lr;
     19  }
     20 </style>
     21 
     22 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     23 
     24 <div id="reference-overlapped-red"></div>
     25 <div style="display: grid; grid-template-columns: auto; width: min-content; background: green;">
     26  <div class="item" style="width: 100px; height: min-content;"></div>
     27  <div class="item" style="width: 100px; height: 1%; min-height: min-content;"></div>
     28 </div>