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-available-size-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="balance-available-size-002-ref.html">
<meta name="assert" content="Tests that the available-size for measuring is smaller than the container.">
<style>
#flex {
display: flex;
flex-direction: row;
flex-wrap: balance;
flex-line-count: 2;
gap: 20px;
height: 220px;
}
#flex > div {
writing-mode: vertical-rl;
background: green;
line-height: 0;
}
span {
display: inline-block;
width: 50px;
height: 100px;
}
</style>
<p>There should be three (3) green squares below.</p>
<div id="flex">
<div>
<span></span><span></span>
</div>
<div>
<span></span><span></span>
</div>
<div>
<span></span><span></span>
</div>
</div>