1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 17:47:35 +00:00
serenity/Tests/LibWeb/Layout/input/flex-abspos-item-with-preceding-whitespace.html
Andreas Kling 7b4c76788b 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.
2023-04-07 10:15:16 +02:00

16 lines
No EOL
382 B
HTML

<!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">