Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-break/flexbox/single-line-column-flex-fragmentation-022.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
Single-line column flex fragmentation: the flex container consumes the
remaining fragmentainer space if an item breaks before.
</title>
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<style>
.multicol {
column-count: 2;
column-gap: 0px;
column-fill: auto;
height: 100px;
width: 100px;
background: red;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="multicol">
<div style="display: flex; flex-direction: column; width: 50px; background: green;">
<div style="height: 50px;"></div>
<div style="height: 100px; break-before: column;"></div>
</div>
</div>