mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibWeb: Use the parent container's y offset when finding static position
Fixes #18819.
This commit is contained in:
parent
bf06d5b634
commit
5da9f52b1f
5 changed files with 37 additions and 2 deletions
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html><style>
|
||||
* {
|
||||
border: solid 5px black;
|
||||
}
|
||||
.static {
|
||||
height: 200px;
|
||||
width: 200px;
|
||||
background: green;
|
||||
}
|
||||
.absolute {
|
||||
position: absolute;
|
||||
height: 200px;
|
||||
width: 100px;
|
||||
background: blue;
|
||||
}
|
||||
</style><div class="static"></div><div class="absolute"></div></div>
|
Loading…
Add table
Add a link
Reference in a new issue