Status: PASS | Duration: 8ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-027.html
<!doctype html> <meta charset="utf8"> <title>CSS contain-intrinsic-size: aspect-ratio interaction</title> <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org"> <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override"> <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5241"> <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> <meta name="assert" content="contain-intrinsic-size doesn't establish an aspect-ratio"> <p>Test passes if there is a filled green square.</p> <!-- Use flex because a bug in blink's layout_replaced size computation makes this test pass even when blink makes c-i-s establish an aspect ratio. Flex doesn't use layout_replaced sizing, so it bypasses the bug. --> <!-- min-width: 0 is just so we don't have to think about it. --> <div style="display: flex;"> <img src="/css/support/60x60-green.png" style="min-width: 0px; contain: size; contain-intrinsic-size: 50px 100px; width: 100px;"> </div>
/css/reference/ref-filled-green-100px-square-only.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> <p>Test passes if there is a filled green square.</p> <div style="width:100px; height:100px; background:green;"></div>