Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/fit-content-max-inline-size.tentative.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: fit-content; height: 100px; background: green;">
<div style="max-width: fit-content; width: 200px;">
<span style="display: inline-block; width: 50px;"></span><span style="display: inline-block; width: 50px;"></span>
</div>
</div>