wpt / css / css-break / flexbox / multi-line-row-flex-fragmentation-070.html

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

/css/css-break/flexbox/multi-line-row-flex-fragmentation-070.html

<!DOCTYPE html>
<title>
  Multi-line row flex fragmentation: row gaps should be truncated by
  fragmentainer breaks. Tests row gap that is larger than the
  fragmentainer block-size.
</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#pagination">
<link rel="match" href="multi-line-row-flex-fragmentation-070-ref.html">
<style>
  .multicol {
    columns: 2;
    column-fill: auto;
    width: 300px;
    height: 100px;
    margin: 20px;
    background: yellow;
  }
  .flex {
    display: flex;
    flex-wrap: wrap;
    background: gray;
  }
  .flex > div {
    contain: size;
    width: 100%;
    height: 50px;
    background: cyan;
  }
</style>
<p>Flex row gaps <strong>should</strong> be truncated when a row breaks.</p>
<div class="multicol">
  <div class="flex" style="row-gap:150px;">
    <div></div>
    <div></div>
  </div>
</div>

/css/css-break/flexbox/multi-line-row-flex-fragmentation-070-ref.html

<!DOCTYPE html>
<title>
  Multi-line row flex fragmentation: row gaps should be truncated by
  fragmentainer breaks. Tests row gap that is larger than the
  fragmentainer block-size.
</title>
<style>
  .multicol {
    columns: 2;
    column-fill: auto;
    width: 300px;
    height: 100px;
    margin: 20px;
    background: yellow;
  }
  .flex {
    display: flex;
    flex-wrap: wrap;
    background: gray;
  }
  .flex > div {
    contain: size;
    width: 100%;
    height: 50px;
    background: cyan;
  }
</style>
<p>Flex row gaps <strong>should</strong> be truncated when a row breaks.</p>
<div class="multicol">
  <div class="flex">
    <div></div>
    <div style="margin-top:50px;"></div>
  </div>
</div>