mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb: Resolve "height: auto" using preferred aspect ratio if possible
Fixes https://github.com/LadybirdBrowser/ladybird/issues/2276
This commit is contained in:
parent
227b4c38b7
commit
08c155cd3f
Notes:
github-actions[bot]
2025-03-15 12:52:15 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 08c155cd3f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3946
6 changed files with 55 additions and 11 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue