flex-minimum-height-flex-items-013.html (937B)
1 <!DOCTYPE html> 2 <html> 3 <title>CSS Flexbox: min-height: auto with nested flexboxes</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=933931" /> 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 8 9 <style> 10 .outer { 11 display: flex; 12 flex-direction: column; 13 height: 20px; 14 width: 100px; 15 background: red; 16 } 17 18 .middle { 19 display: flex; 20 flex-direction: column; 21 background: green; 22 } 23 24 .inner { 25 display: flex; 26 flex-direction: column; 27 } 28 29 .tall { 30 width: 50px; 31 height: 100px; 32 } 33 </style> 34 <body> 35 36 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 37 38 <div class="outer"> 39 <div class="middle"> 40 <div class="inner"> 41 <div class="tall"></div> 42 </div> 43 </div> 44 </div> 45 46 47 </body> 48 </html>