col-wrap-004.html (1033B)
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 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/resources/check-layout-th.js"></script> 7 <meta name="assert" 8 content="Item with width:100% doesn't contribute to max-content size but does get 100px width after final layout. The item also overflows the container." /> 9 10 <style> 11 .item { 12 /* Remove min-height so we don't have to think about it. */ 13 min-height: 0px; 14 flex: 0 0 100px; 15 outline: 1px solid; 16 } 17 </style> 18 19 <div 20 style="display: flex; flex-flow: column wrap; width: max-content; height: 100px; background: green; position: relative;" 21 data-expected-width="100"> 22 <div class="item" style="width: 100px;"></div> 23 <div class="item" style="width: 100%;" data-expected-width="100" 24 data-offset-x="100"></div> 25 </div> 26 27 <script> 28 checkLayout('body > div'); 29 </script>