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-007.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>.
<div style="display: flex; flex-wrap: wrap-reverse; width: 100px; height: 100px; position: relative;">
<div style="background: red; max-height: 80px; height: calc-size(auto, size / 2); flex: 1;"></div>
<div style="background: green; position: absolute; inset: 0;"></div>
</div>