Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<!DOCTYPE html>
<title>Checks that a dynamic change in containing block width changes the number of auto repeat tracks.</title>
<link rel="help" href="https://drafts.csswg.org/css-grid-3">
<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, auto);
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="target" style="width: 0px; height: 100px;">
<div class="masonry">
<div style="height: 1px; width: 50px;visibility: hidden;">x</div>
</div>
</div>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = '100px';
</script>