tor-browser

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

flex-aspect-ratio-img-column-006.html (971B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Google LLC" href="http://www.google.com" />
      3 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#line-sizing" />
      4 <title>css-flexbox: Tests that we use the aspect ratio, clamped by min/max, to compute the main size</title>
      5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
      6 
      7 <style>
      8 #reference-overlapped-red {
      9    position: absolute;
     10    background-color: red;
     11    width: 100px;
     12    height: 100px;
     13    z-index: -1;
     14 }
     15 
     16 .flex {
     17  display: flex;
     18  flex-direction: column;
     19  justify-content: flex-start;
     20  align-items: flex-start;
     21  float: left;
     22 }
     23 
     24 img {
     25  min-width: 40px;
     26  min-height: 0; /* Disable min-size: auto. */
     27 }
     28 </style>
     29 
     30 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     31 
     32 <div id="reference-overlapped-red"></div>
     33 <div style="width:60px; height: 100px; background: green; float: left;"></div>
     34 <div class="flex">
     35  <img src="support/20x50-green.png">
     36 </div>