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/flex-aspect-ratio-036.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>aspect-ratio flex item</title>
title="Part E">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
<meta name="assert"
content="max-content, not max-intrinsic, size is the flex base size of an aspect-ratio item that has an indefinite flex-basis and cross size">
<p>Test passes if there is a filled green square and <strong>no red</strong>.
</p>
<div style="display: flex; flex-flow: column; align-items: start;">
<div
style="aspect-ratio: 1/1; flex: 0 0 content; min-height: 0px; min-width: 100px; background: green;">
</div>
</div>