col-wrap-009.html (1106B)
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 intrinsic width changes when its height changes." /> 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 span { 17 width: 50px; 18 height: 100px; 19 } 20 </style> 21 22 <p>Test passes if there is a filled green square and <strong>no red</strong>. 23 <div id=reference-overlapped-red></div> 24 25 <div style="display: flex; height: 200px;" id="target"> 26 <div 27 style="display: flex; flex-flow: column wrap; width: max-content; background: green;"> 28 <span></span> 29 <span></span> 30 </div> 31 </div> 32 33 <script> 34 target.offsetLeft; 35 // With original height of 200px, both items fit in one flex line. 36 // With height 100px, there are two lines and the items are side-by-side. 37 target.style.height = "100px"; 38 </script>