row-001.html (1089B)
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/#intrinsic-sizes"> 4 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 5 <meta name="assert" 6 content="the flex container's min-content size is big enough to contain the item's max-content size when the item is inflexible and has flex-basis auto. The old algorithm gives the container a min-content of 50px." /> 7 8 <style> 9 .inline-block { 10 float: left; 11 width: 100px; 12 } 13 14 #reference-overlapped-red { 15 position: absolute; 16 background-color: red; 17 width: 100px; 18 height: 100px; 19 z-index: -1; 20 } 21 </style> 22 23 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 24 25 <div id=reference-overlapped-red></div> 26 27 <div style="width: 0px;"> 28 <div style="display: flex; background: green; height: 100px; float: left;"> 29 <!-- min: 50 max: 100 --> 30 <div style="flex: 0 0 auto;"> 31 <div class=inline-block></div> 32 <div class=inline-block></div> 33 </div> 34 </div>