row-auto-repeat-006.html (818B)
1 <!DOCTYPE html> 2 <title>Checks that a dynamic change in containing block height 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 grid-lanes-direction: row; 10 background: green; 11 width: 100px; 12 min-height: 60%; 13 grid-template-rows: repeat(auto-fill, 50px); 14 } 15 </style> 16 <p>Test passes if there is a filled green square.</p> 17 <div id="target" style="width: 100px; height: 0px;"> 18 <div class="grid-lanes"></div> 19 </div> 20 <script> 21 document.body.offsetTop; 22 document.getElementById('target').style.height = '100px'; 23 </script>