wpt / css / css-flexbox / balance / balance-available-size-001.html

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

/css/css-flexbox/balance/balance-available-size-001.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-flexbox-2/#flex-line-count-property">
<link rel="match" href="balance-available-size-001-ref.html">
<meta name="assert" content="Tests that the available-size for measuring is smaller than the container.">
<style>
#flex {
  display: flex;
  flex-direction: column;
  flex-wrap: balance;
  flex-line-count: 2;
  gap: 20px;
  width: 220px;
}

#flex > div {
  background: green;
  line-height: 0;
}

span {
  display: inline-block;
  width: 100px;
  height: 50px;
}
</style>
<p>There should be three (3) green squares below.</p>
<div id="flex">
  <div>
    <span></span><span></span>
  </div>
  <div>
    <span></span><span></span>
  </div>
  <div>
    <span></span><span></span>
  </div>
</div>

/css/css-flexbox/balance/balance-available-size-001-ref.html

<!DOCTYPE html>
<style>
#flex {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  width: 220px;
  height: 220px;
}

#flex > div {
  background: green;
  width: 100px;
  height: 100px;
}
</style>
<p>There should be three (3) green squares below.</p>
<div id="flex">
  <div></div>
  <div></div>
  <div></div>
</div>