mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +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:
parent
668578ddc0
commit
76aa17be86
3 changed files with 30 additions and 12 deletions
|
@ -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">
|
Loading…
Add table
Add a link
Reference in a new issue