col-wrap-011.html (1016B)
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 6 <meta name="assert" 7 content="column-wrap container's min-content width is non-zero. Old algorithm agrees. I broke this case during development but no other tests failed." /> 8 9 <style> 10 #reference-overlapped-red { 11 position: absolute; 12 background-color: red; 13 width: 100px; 14 height: 100px; 15 z-index: -1; 16 } 17 18 .item { 19 /* Remove min-height so we don't have to think about it. */ 20 min-height: 0px; 21 width: 100px; 22 flex: 0 0 auto; 23 } 24 25 </style> 26 27 <p>Test passes if there is a filled green square and <strong>no red</strong>. 28 </p> 29 30 <div id=reference-overlapped-red></div> 31 32 <div 33 style="display: flex; flex-flow: column wrap; height: 100px; width: min-content; background: green;"> 34 <div class="item"></div> 35 <div class="item"></div> 36 </div>