wpt / css / css-flexbox / balance / balance-004.html

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

/css/css-flexbox/balance/balance-004.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-flexbox-2/#algo-balance">
<link rel="match" href="balance-004-ref.html">
<meta name="assert" content="A zero width item which fits perfectly, shouldn't create an additional line.">
<style>
body {
  width: 120px;
  border: solid 3px;
}
#flex {
  display: flex;
  flex-wrap: balance;
  padding: 10px;
}
#flex > div {
  width: 25px;
  height: 25px;
  background: green;
}
</style>
<div id="flex">
  <div style="width: 100%"></div>
  <div style="width: 0px"></div>
</div>

/css/css-flexbox/balance/balance-004-ref.html

<!DOCTYPE html>
<style>
body {
  width: 120px;
  border: solid 3px;
}
#flex {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
}
#flex > div {
  width: 25px;
  height: 25px;
  background: green;
}
</style>
<div id="flex">
  <div style="width: 100%"></div>
  <div style="width: 0px"></div>
</div>