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/aspect-ratio/block-aspect-ratio-057.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; background: green;">
<!-- The auto min-size should apply. -->
<div style="aspect-ratio: 1/2; width: 100%; height: 100px;">
<div style="width: 100px;"></div>
</div>
</div>