1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-09-14 08:17:34 +00:00

LibWeb: Reset margin collapsing state only if box indeed add clearance

This fixes the issue when margin collapsing state was always reset if
a box has clear property not equal to none even if it does not actually
introduce clearance.
This commit is contained in:
Aliaksandr Kalenik 2023-05-26 18:31:29 +03:00 committed by Andreas Kling
parent b0a43404b9
commit 7cc20f4cb5
6 changed files with 83 additions and 13 deletions

View file

@ -0,0 +1,8 @@
<!doctype html><style>
.upper {
margin-bottom: 75px;
}
.mystery {
clear: both;
}
</style><body><div class="upper">upper</div><div class="mystery"></div><div class="lower">lower