mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
We already dealt with this for block level children, but inline level children should also look at the anonymous wrapper's parent's available space to be able to properly resolve percentage values, for example.
13 lines
365 B
HTML
13 lines
365 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="../expected/img-height-inside-anonymous-wrapper-ref.html" />
|
|
<style>
|
|
.a {
|
|
background-color: red;
|
|
height: 300px;
|
|
width: 300px;
|
|
}
|
|
img {
|
|
height: 100%;
|
|
}
|
|
</style>
|
|
<div class="a"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M/wHwAEBgIApD5fRAAAAABJRU5ErkJggg=="><div> |