tor-browser

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

flex-minimum-height-flex-items-014.html (1137B)


      1 <!DOCTYPE html>
      2 <html>
      3 <title>CSS Flexbox: min-height: auto with nested flexboxes and justify-content</title>
      4 <link rel="author" title="Google LLC" href="https://www.google.com/" />
      5 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#min-size-auto" />
      6 <link rel="issue" href="https://bugs.chromium.org/p/chromium/issues/detail?id=945214" />
      7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
      8 
      9 <style>
     10 .overlapped-green {
     11  position: absolute;
     12  background-color: green;
     13  width: 100px;
     14  height: 100px;
     15  z-index: 1;
     16 }
     17 
     18 .outer {
     19  display: flex;
     20  flex-direction: column;
     21  height: 100px;
     22  width: 100px;
     23  background: green;
     24 }
     25 
     26 .inner {
     27  display: flex;
     28  flex-direction: column;
     29  justify-content: flex-end;
     30  height: 100%;
     31  background-color: red;
     32 }
     33 
     34 .spacer {
     35  height: 30px;
     36  width: 100px;
     37  background: red;
     38  flex: none;
     39 }
     40 </style>
     41 <body>
     42 
     43 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     44 
     45 <div class="overlapped-green"></div>
     46 <div class="outer">
     47  <div class="spacer"></div>
     48  <div class="inner">
     49    <div class="spacer"></div>
     50  </div>
     51 </div>
     52 
     53 
     54 </body>
     55 </html>