wpt / css / css-flexbox / intrinsic-size / col-wrap-dynamic.html

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

/css/css-flexbox/intrinsic-size/col-wrap-dynamic.html

<!DOCTYPE html>
<link rel="help" href="https://issues.chromium.org/issues/490318093">
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<style>
#target {
  width: max-content;
  height: 200px;
  background: green;
}

#flex {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 100%;
}

#flex > div {
  min-width: 50px;
  min-height: 100px;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="target">
  <div id="flex">
    <div class="item"></div>
    <div class="item"></div>
  </div>
</div>
<script>
document.body.offsetTop;
target.style.height = '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>