Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Flex container with aspect-ratio-derived height provides definite cross size to flex items</title>
<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>