blob: fe1a4d7a5deb596600c21eae861999593f115de8 [file] [log] [blame]
<!DOCTYPE html>
<title>CSS aspect-ratio: min-content size keyword</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5032">
<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>.</p>
<div style="height: 50px; width: min-content; aspect-ratio: 2/1; background: green;"></div>
<!-- min-content in the block axis is treated as auto -->
<div style="height: min-content; width: 100px; aspect-ratio: 2/1; background: green;"></div>