contain-intrinsic-size-027.html (1024B)
1 <!doctype html> 2 <meta charset="utf8"> 3 <title>CSS contain-intrinsic-size: aspect-ratio interaction</title> 4 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org"> 5 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override"> 6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5241"> 7 <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> 8 <meta name="assert" content="contain-intrinsic-size doesn't establish an aspect-ratio"> 9 10 <p>Test passes if there is a filled green square.</p> 11 12 <!-- Use flex because a bug in blink's layout_replaced size computation makes 13 this test pass even when blink makes c-i-s establish an aspect ratio. Flex 14 doesn't use layout_replaced sizing, so it bypasses the bug. --> 15 <!-- min-width: 0 is just so we don't have to think about it. --> 16 <div style="display: flex;"> 17 <img src="/css/support/60x60-green.png" style="min-width: 0px; contain: size; contain-intrinsic-size: 50px 100px; width: 100px;"> 18 </div>