ladybird/Tests/LibWeb/Layout/input/block-and-inline/aspect-ratio-but-width-and-height-are-auto.html
Aliaksandr Kalenik fc45121b70 LibWeb: Size box as normal if it has aspect ratio but auto sizes
Otherwise we apply `calculate_stretch_fit_width()` instead of
calculating width based on the content inside the box, like other
browsers do.
2025-03-27 23:13:57 +00:00

16 lines
No EOL
317 B
HTML

<!doctype html><style>
* {
outline: 1px solid black;
}
.flex {
display: flex;
}
.aspectratio {
aspect-ratio: 1/1;
}
.box {
width: 192px;
height: 192px;
background-color: magenta;
}
</style><div class="flex"><div class="wrapper"><div class="aspectratio"><div class="box"></div></div></div>hello