intrinsic-size-016.html (637B)
1 <!DOCTYPE html> 2 <title>CSS aspect-ratio: min-size:auto and non auto/min-content/max-content width</title> 3 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio"> 4 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> 5 <style> 6 .target { 7 background: green; 8 } 9 </style> 10 11 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 12 13 <!-- `min-width:auto` does not take the content size into account if the 14 aspect-ratio is not used for sizing. --> 15 <div class="target" style="width: 100px; height: 100px; aspect-ratio: 1/1;"> 16 <div style="width: 200px;"></div> 17 </div>