1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00
serenity/Tests/LibWeb/Layout/input/block-and-inline/margin-collapse-6.html
Aliaksandr Kalenik 76aa17be86 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.
2023-05-22 12:51:24 +02:00

15 lines
No EOL
321 B
HTML

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