Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/balance/balance-start-bias-003.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="balance-start-bias-003-ref.html">
<meta name="assert" content="If multiple possible sequence assignments have equal minimum error, select the sequence that assigns the most items to the first line; if multiple sequences tie by that metric, select the sequence among them that assigns the most items to the second line; etc.">
<style>
body {
width: 120px;
border: solid 3px;
}
#flex {
display: flex;
flex-wrap: balance;
flex-line-count: 5;
padding: 10px;
gap: 10px;
}
#flex > div {
width: 25px;
height: 25px;
background: green;
}
</style>
<div id="flex">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>