flex-basis-010.html (813B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: Indefinite % flex-basis should cause height to be ignored</title> 4 <link rel="author" title="Google LLC" href="https://www.google.com"> 5 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-basis-property"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <style> 8 #container { 9 background-color: red; 10 display: flex; 11 width: 100px; 12 flex-direction: column; 13 } 14 #item { 15 flex: 0 0 0%; 16 height: 500px; 17 background-color: red; 18 } 19 #child { 20 height: 100px; 21 background-color: green; 22 } 23 </style> 24 <body> 25 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 26 <div id="container"> 27 <div id="item"> 28 <div id="child"></div> 29 </div> 30 </div> 31 </body>