tor-browser

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

flex-minimum-height-flex-items-015.html (1124B)


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