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/masonry/tentative/track-sizing/auto-repeat/column-auto-repeat-006.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<title>Checks that a dynamic change in containing block width 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>
.masonry {
    display: inline-masonry;
    background: green;
    height: 100px;
    min-width: 60%;
    grid-template-columns: repeat(auto-fill, 50px);
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="target" style="width: 0px; height: 100px;">
  <div class="masonry"></div>
</div>
<script>
  document.body.offsetTop;
  document.getElementById('target').style.width = '100px';
</script>