tor-browser

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

table-as-item-min-height-1.html (909B)


      1 <!doctype html>
      2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      3 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item">
      4 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      5 <meta name="assert" content="Table's min-height is ignored when calculating flex basis.">
      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 </style>
     16 
     17 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     18 <div id="reference-overlapped-red"></div>
     19 
     20 <div style="display: flex; flex-direction: column; height: 200px;">
     21  <div style="display: table; min-height: 80px; flex: 1 0 auto; width: 100px; background: green;">
     22    <div style="display: table-cell">
     23      <div style="height: 1px"></div>
     24    </div>
     25  </div>
     26  <div style="flex: 1 0 1px;"></div>
     27 </div>