1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

LibWeb: Make sure collapsed margins are not ignored if box creates FC

Fixes a bug that if box creates new formatting context then all already
collapsed margins are ignored and only margin_top is used.
This commit is contained in:
Aliaksandr Kalenik 2023-05-22 13:03:00 +03:00 committed by Andreas Kling
parent 668578ddc0
commit 76aa17be86
3 changed files with 30 additions and 12 deletions

View file

@ -0,0 +1,15 @@
<!doctype html><style>
.upper {
margin-bottom: 50px;
height: 20px;
background: lime;
}
.bfc {
display: flow-root;
}
.inner {
width: 20px;
height: 20px;
background: black;
}
</style><div class="upper"></div><div class=bfc><div class="inner">