mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 21:55:08 +00:00

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.
17 lines
354 B
HTML
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
|