LibWeb: Resolve "height: auto" using preferred aspect ratio if possible

Fixes https://github.com/LadybirdBrowser/ladybird/issues/2276
This commit is contained in:
Aliaksandr Kalenik 2025-03-14 20:20:34 +01:00 committed by Alexander Kalenik
commit 08c155cd3f
Notes: github-actions[bot] 2025-03-15 12:52:15 +00:00
6 changed files with 55 additions and 11 deletions

View file

@ -0,0 +1,14 @@
<style>
#item {
display: grid;
grid-template-columns: 1fr 1fr;
width: 100px;
outline: 1px solid black;
}
img {
width: 100%;
}
</style>
<div id="item">
<img src="../../../Assets/120.png">
</div>