tor-browser

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

grid-aspect-ratio-033.html (630B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: A stretch alignment in both axes (*not* normal alignment) causes the aspect-ratio to be ignored.</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      4 <link rel="help" href="https://drafts.csswg.org/css-grid/#grid-item-sizing">
      5 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      6 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      7 <div style="display: grid; grid-template: 100px / 100px;">
      8  <div style="aspect-ratio: 1/2; align-self: stretch; justify-self: stretch; background: green;"></div>
      9 </div>