col-wrap-001.html (1088B)
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="column-wrap container's max-content width is big enough that items don't overflow when the container has fixed height and items have fixed width and height. Old algorithm gave max-content width of 50px." /> 7 8 <style> 9 #reference-overlapped-red { 10 position: absolute; 11 background-color: red; 12 width: 100px; 13 height: 100px; 14 z-index: -1; 15 } 16 17 .item { 18 /* Remove min-height so we don't have to think about it. */ 19 min-height: 0px; 20 width: 50px; 21 flex: 0 0 100px 22 } 23 </style> 24 25 <p>Test passes if there is a filled green square and <strong>no red</strong>. 26 </p> 27 28 <div id=reference-overlapped-red></div> 29 30 <div 31 style="display: flex; flex-flow: column wrap; height: 100px; width: max-content; background: green;" 32 class=flex> 33 <div class="item"></div> 34 <div class="item"></div> 35 </div>