column-auto-repeat-006.html (788B)
1 <!DOCTYPE html> 2 <title>Checks that a dynamic change in containing block width changes the number of auto repeat tracks.</title> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <link rel="match" href="../../../../../reference/ref-filled-green-100px-square-only.html"> 5 <link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com"> 6 <style> 7 .grid-lanes { 8 display: inline-grid-lanes; 9 background: green; 10 height: 100px; 11 min-width: 60%; 12 grid-template-columns: repeat(auto-fill, 50px); 13 } 14 </style> 15 <p>Test passes if there is a filled green square.</p> 16 <div id="target" style="width: 0px; height: 100px;"> 17 <div class="grid-lanes"></div> 18 </div> 19 <script> 20 document.body.offsetTop; 21 document.getElementById('target').style.width = '100px'; 22 </script>