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-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<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>