mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:37:35 +00:00
LibWeb: Don't put abspos grid/flex items in anonymous wrapper
Grid and flex containers have their own rules for abspos items, so we shouldn't try to be clever and put them in the "current" anonymous wrapper block. That behavior is primarily for the benefit of block & inline layout.
This commit is contained in:
parent
8760376abe
commit
7b4c76788b
3 changed files with 25 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html><html><head><style>
|
||||
* {
|
||||
border: 1px solid black !important;
|
||||
}
|
||||
.pink {
|
||||
background: pink;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.orange {
|
||||
background: orange;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
}
|
||||
</style></head><body><div class="pink"> <div class="orange">
|
Loading…
Add table
Add a link
Reference in a new issue