1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 21:55:08 +00:00
serenity/Tests/LibWeb/Layout/input/flex/abspos-flex-child-static-position-with-padding-on-flex-container.html
Andreas Kling 3250a424f0 LibWeb: Don't offset abspos children of flex container by padding twice
We were incorrectly offsetting the static position of abspos children of
flex containers by the padding twice. This was a misguided attempt to
adjust to the abspos containing block being the padding box, not the
content box.

Fixes #21344.
2023-10-08 09:06:30 +02:00

17 lines
354 B
HTML

<!DOCTYPE html><html><head><style>
#flex-container {
display: flex;
padding: 10px;
}
#absolute {
position: absolute;
}
#orange {
background-color: orange;
width: 50px;
height: 50px;
}
#red {
background-color: red;
}
</style></head><body><div id="flex-container"><div id="absolute"><div id="orange"></div></div><div id="red">x