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:
parent
1c991e5582
commit
473848be0e
4 changed files with 30 additions and 0 deletions
|
@ -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">
|
BIN
Tests/LibWeb/Layout/input/img.webp
Normal file
BIN
Tests/LibWeb/Layout/input/img.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
Loading…
Add table
Add a link
Reference in a new issue