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-min-max-sizes-006.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div style="width: 100px;">
<!-- The min-content, max-content size of this div should be: 90px, 110px respectively. -->
<div style="background: green; width: fit-content; height: 100px;">
<div style="width: calc-size(fit-content, size + 70px);">
<span style="display: inline-block; width: 20px;"></span><span style="display: inline-block; width: 20px;"></span>
</div>
</div>
</div>