ladybird/Tests/LibWeb/Layout/input/inline-flex-with-aspect-ratio.html
Aliaksandr Kalenik 26a516c85f LibWeb: Allow any FC type for replaced boxes in dimension_box_on_line()
If box is sized as replaced it still could be anything, not only SVG.

This fixes crashing on https://www.shopify.com/ that was caused by a
missing paintable for a box that has a layout node. This occurred
because the box was not laid out in dimension_box_on_line().
2024-03-23 20:57:05 +01:00

9 lines
No EOL
308 B
HTML

<!DOCTYPE html><style>
.inline-flex {
display: inline-flex
}
.aspect-ratio {
aspect-ratio: .975
}
</style><div class="inline-flex aspect-ratio"><div class="img-wrapper"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAADUlEQVR4nGNgGAWkAwABNgABVtF/yAAAAABJRU5ErkJggg==">