tor-browser

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

flex-aspect-ratio-img-column-007.html (986B)


      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  width: 200px;
     22  float: left;
     23 }
     24 
     25 img {
     26  min-width: 20%;
     27  min-height: 0; /* Disable min-size: auto. */
     28 }
     29 </style>
     30 
     31 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     32 
     33 <div id="reference-overlapped-red"></div>
     34 <div style="width:60px; height: 100px; background: green; float: left;"></div>
     35 <div class="flex">
     36  <img src="support/20x50-green.png">
     37 </div>