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/intrinsic-size/col-wrap-dynamic.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<style>
#target {
width: max-content;
height: 200px;
background: green;
}
#flex {
display: flex;
flex-direction: column;
flex-wrap: wrap;
max-height: 100%;
}
#flex > div {
min-width: 50px;
min-height: 100px;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="target">
<div id="flex">
<div class="item"></div>
<div class="item"></div>
</div>
</div>
<script>
document.body.offsetTop;
target.style.height = '100px';
</script>