intrinsic-size-004.html (699B)
1 <!DOCTYPE html> 2 <title>CSS aspect-ratio: min-content size keyword</title> 3 <link rel="author" title="Google LLC" href="https://www.google.com/"> 4 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio"> 5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5032"> 6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> 7 8 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 9 10 <div style="height: 50px; width: min-content; aspect-ratio: 2/1; background: green;"></div> 11 <!-- min-content in the block axis is treated as auto --> 12 <div style="height: min-content; width: 100px; aspect-ratio: 2/1; background: green;"></div>