ladybird/Tests/LibWeb/Layout/input/abspos-box-with-replaced-element.html
Aliaksandr Kalenik 473848be0e LibWeb: Do not treat size of abspos items as definite
This fixes the issue when size of abspos items is considered to be
resolvable without performing layout which is not correct in the
scenarious when top/right/bottom/left properties are not auto.
2023-06-22 18:18:04 +02:00

22 lines
No EOL
441 B
HTML

<!DOCTYPE html><style>
* {
border: 1px solid white;
}
html {
background: black;
}
body {
position: absolute;
width: 500px;
height: 100px;
background: maroon;
}
img {
max-width: 100%;
}
.image-container {
position: absolute;
background: green;
left: 250px;
}
</style><body><div class="image-container"><img src="img.webp">