change-column-flex-width.html (1325B)
1 <!DOCTYPE html> 2 <meta charset="UTF-8"> 3 <title>CSS Flexbox: flex items inside flex-direction:column</title> 4 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-direction-property"> 5 <meta name="assert" content="This test ensures that when main axis is logical y, layout flex items before getting intrinsic size."/> 6 <link href="support/flexbox.css" rel="stylesheet"> 7 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/resources/check-layout-th.js"></script> 11 <script> 12 function change() { 13 document.body.offsetTop; 14 var flex = document.getElementById("flex"); 15 flex.style.width = "100px"; 16 checkLayout("#container"); 17 } 18 </script> 19 <body onload="change()"> 20 <p>There should be a green square below. No red.</p> 21 <!-- #container is just here to make sure the test fails more reliably visually if the bug is present. --> 22 <div id="container" style="width:500px;"> 23 <div id="flex" style="display:flex; flex-direction:column; width:70px;" data-expected-height="100"> 24 <div style="background:red;" data-expected-height="100"> 25 <div style="float:left; width:50px; height:100px; background:green;"></div> 26 <div style="float:left; width:50px; height:100px; background:green;"></div> 27 </div> 28 </div> 29 </div> 30 </body>