Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-grid/grid-lanes/tentative/track-sizing/auto-repeat/row-auto-repeat-006.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Checks that a dynamic change in containing block height changes the number of auto repeat tracks.</title>
<link rel="match" href="../../../../../reference/ref-filled-green-100px-square-only.html">
<link rel="author" title="Alison Maher" href="mailto:almaher@microsoft.com">
<style>
.grid-lanes {
display: inline-grid-lanes;
masonry-direction: row;
background: green;
width: 100px;
min-height: 60%;
grid-template-rows: repeat(auto-fill, 50px);
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="target" style="width: 100px; height: 0px;">
<div class="grid-lanes"></div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.height = '100px';
</script>