mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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.
24 lines
451 B
HTML
24 lines
451 B
HTML
<style>
|
|
.clearfix {
|
|
clear: both;
|
|
margin-top: 9999px;
|
|
margin-bottom: 100px;
|
|
background-color: black;
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
.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> |