Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-values/calc-size/calc-size-flex-008.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.
<style>
#flex {
display: flex;
flex-direction: column;
flex-wrap: wrap;
width: 100px;
height: calc-size(auto, min(size, 100px));
background: red;
}
#flex > div {
width: 100px;
height: 60px;
background: green;
}
</style>
<!-- There should only be one flex-line as at the time of determining the
available main-size it is indefinite, and calc-size() shouldn't resolve.
<div id="flex">
<div></div>
<div></div>
</div>