Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-flexbox/flex-aspect-ratio-cross-size-001.html
<!DOCTYPE html> <title>Flex container with aspect-ratio-derived height provides definite cross size to flex items</title> <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#definite-sizes"> <link rel="match" href="flex-aspect-ratio-cross-size-001-ref.html"> <style> .flex { display: flex; width: 400px; aspect-ratio: 2 / 1; } img { display: block; } </style> <p>Test passes if the two images below are the same size.</p> <div class="flex"> <img src="../support/1x1-green.png"> </div> <div class="flex" style="aspect-ratio: auto; height: 200px;"> <img src="../support/1x1-green.png"> </div>
/css/css-flexbox/flex-aspect-ratio-cross-size-001-ref.html
<!DOCTYPE html> <title>Reference</title> <style> .flex { display: flex; width: 400px; height: 200px; } img { display: block; } </style> <p>Test passes if the two images below are the same size.</p> <div class="flex"> <img src="../support/1x1-green.png"> </div> <div class="flex"> <img src="../support/1x1-green.png"> </div>