1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +00:00

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.
This commit is contained in:
Aliaksandr Kalenik 2023-06-22 18:02:04 +03:00 committed by Andreas Kling
parent 1c991e5582
commit 473848be0e
4 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,22 @@
<!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">

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB