tor-browser

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

flex-aspect-ratio-040.html (696B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: Test flex container's cross size (block axis) honoring automatic content-based minimum</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-minimum">
      5 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      6 
      7 <style>
      8  #container {
      9    display: flex;
     10    width: 100px;
     11    aspect-ratio: 2 / 1;
     12    background: green;
     13  }
     14  #item {
     15    width: 100%;
     16    height: 100px;
     17  }
     18 </style>
     19 <body>
     20  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     21  <div id="container">
     22    <div id="item"></div>
     23  </div>
     24 </body>