mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 18:24:45 -05:00
473848be0e
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.
22 lines
No EOL
441 B
HTML
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"> |