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-min-line-count-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="Tests balancing with a minimum number of lines.">
<style>
div > div {
background: green;
width: 50px;
height: 50px;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: flex; width: 200px; flex-wrap: balance; flex-line-count: 2;">
<div></div>
<div></div>
<div></div>
<div></div>
</div>