1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:57:47 +00:00

LibWeb: Fix clearance to update y offset within current block

If a box has clearance and margin bottom of preceding box is greater
than static y of the box then it should also affect y offset in current
block container so subsequent boxes will get correct y position too.
This commit is contained in:
Aliaksandr Kalenik 2023-02-10 17:31:11 +03:00 committed by Andreas Kling
parent 0cd63f851e
commit 2ed5415750
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<style>
.clearfix {
clear: both;
}
.square {
float: left;
width: 49px;
height: 49px;
}
.white {
background-color: salmon;
width: 100px;
height: 100px;
}
.black {
background-color: slateblue;
}
</style>
<div>
<div class="square white"></div>
<div class="clearfix"></div>
<div class="square black"></div>
</div>