align-items-008.html (592B)
1 <!DOCTYPE html> 2 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 3 <link rel="help" href="https://crbug.com/1081086" /> 4 <meta name="assert" content="Tests that certain dynamic changes don't lead to an incorrectly sized flex-item." /> 5 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 6 <div id="target" style="display: flex; min-height: 200px;"> 7 <div style="width: 100px; min-height: 100px; background: green;"></div> 8 </div> 9 <script> 10 document.body.offsetTop; 11 document.getElementById('target').style.alignItems = 'flex-start'; 12 </script>