1
0
Fork 0
firefox/testing/web-platform/tests/css/css-flexbox/flex-aspect-ratio-img-vert-lr.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

34 lines
791 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#algo-main-item">
<meta name="assert" content="Flex item should compute its main size from its definite cros size and aspect ratio.">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.flexbox {
position: relative;
display: flex;
writing-mode: vertical-lr;
width: 100px;
align-items: start;
}
.flex-item{
width: 40px
}
.abspos {
width: 60px;
height: 100px; background-color: green;
position: absolute;
left: 40px;
}
</style>
</head>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<div class="flexbox">
<img class="flex-item" src="support/20x50-green.png">
<div class="abspos"></div>
</div>
</body>
</html>