mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibWeb: Resolve used insets for floating elements
This makes the game carousel work on https://null.com/ :^)
This commit is contained in:
parent
a2591bc5fa
commit
c83ae729d2
5 changed files with 61 additions and 0 deletions
17
Tests/LibWeb/Layout/input/block-and-inline/relpos-float.html
Normal file
17
Tests/LibWeb/Layout/input/block-and-inline/relpos-float.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html><style>
|
||||
* { border: 2px solid black; }
|
||||
body { width: 600px; }
|
||||
div {
|
||||
width: 200px;
|
||||
position: relative;
|
||||
float: left;
|
||||
}
|
||||
.athena {
|
||||
background: green;
|
||||
top: 4px;
|
||||
left: -200px;
|
||||
}
|
||||
.exekiller {
|
||||
background: red;
|
||||
}
|
||||
</style><body><div class="exekiller">exekiller</div><div class="athena">athena</div></body>
|
Loading…
Add table
Add a link
Reference in a new issue