wpt / css / css-grid / grid-definition / flex-item-grid-container-auto-repeat-002.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-grid/grid-definition/flex-item-grid-container-auto-repeat-002.html

<!DOCTYPE html>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#auto-repeat">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1936276">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="This test verifies that the grid container's content size suggestion (min-content size) is 50px, which is contributed by only one repeat column.">

<style>
.flex {
  display: flex;
  width: 100px;
  height: 100px;
}
.item-flex-none {
  width: 50px;
  flex: none;
  background: green;
}
.item-grid-container {
  display: grid;
  width: 200px;
  grid-template-columns: repeat(auto-fill, 50px);
  background: green;
}
</style>

<p>Test passes if there is a filled green square.</p>
<div class="flex">
  <div class="item-flex-none"></div>
  <div class="item-grid-container"></div>
</div>

/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>