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

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

/css/css-flexbox/balance/balance-complex.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-flexbox-2/#algo-balance">
<link rel="match" href="balance-complex-ref.html">
<meta name="assert" content="Tests balancing a non-trivial amount of items. All implementations should be minimizing the sum of the squared error, and have the same rendering.">
<style>
#flex {
  display: flex;
  flex-wrap: balance;
  width: 250px;
  padding: 10px;
  gap: 10px;
}
#flex > div {
  height: 20px;
  background: green;
}
</style>
<div id="flex">
  <div style="width: 100px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 40px;"></div>
  <div style="width: 70px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 10px;"></div>
  <div style="width: 250px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 65px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 55px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 90px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 65px;"></div>
  <div style="width: 65px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 150px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 50px;"></div>
</div>

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

<!DOCTYPE html>
<style>
#flex {
  display: flex;
  flex-wrap: wrap;
  width: 250px;
  padding: 10px;
  gap: 10px;
}
#flex > div {
  height: 20px;
  background: green;
}
</style>
<div id="flex">
  <div style="width: 100px;"></div>
  <div style="width: 20px;"></div>
  <div style="background: none; width: 110px;"></div>
  <div style="width: 40px;"></div>
  <div style="width: 70px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 10px;"></div>
  <div style="width: 250px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 65px;"></div>
  <div style="background: none; width: 85px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 55px;"></div>
  <div style="width: 50px;"></div>
  <div style="background: none; width: 65px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 90px;"></div>
  <div style="width: 50px;"></div>
  <div style="background: none; width: 30px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 20px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 50px;"></div>
  <div style="background: none; width: 70px;"></div>
  <div style="width: 65px;"></div>
  <div style="width: 65px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 150px;"></div>
  <div style="background: none; width: 90px;"></div>
  <div style="width: 50px;"></div>
  <div style="width: 50px;"></div>
</div>