wpt / css / css-grid / grid-lanes / track-sizing / auto-repeat / intrinsic-auto-repeat / column-auto-repeat-auto-008.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-grid/grid-lanes/track-sizing/auto-repeat/intrinsic-auto-repeat/column-auto-repeat-auto-008.html

<!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>
.grid-lanes {
    display: inline grid-lanes;
    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="grid-lanes">
    <div style="height: 1px; width: 50px;visibility: hidden;">x</div>
  </div>
</div>
<script>
  document.body.offsetTop;
  document.getElementById('target').style.width = '100px';
</script>

/css/reference/ref-filled-green-100px-square-only.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<p>Test passes if there is a filled green square.</p>
<div style="width:100px; height:100px; background:green;"></div>