grid-auto-repeat-dynamic-001.html (658B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#auto-repeat"> 3 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> 4 <meta name="assert" content="Checks that a dynamic change in containing block width changes the number of auto repeat columns."> 5 <p>Test passes if there is a filled green square.</p> 6 <div id="target" style="width: 0px; height: 100px;"> 7 <div style="display: inline-grid; background: green; height: 100px; min-width: 60%; grid-template-columns: repeat(auto-fill, 50px);"></div> 8 </div> 9 <script> 10 document.body.offsetTop; 11 document.getElementById('target').style.width = '100px'; 12 </script>