ladybird/Tests/LibWeb/Layout/input/block-and-inline/margin-collapse-7.html
Aliaksandr Kalenik e2eb8716e5 LibWeb: Fix incorrect margin collapsing behavior [BFC]
This change removes premature reset of
`block_container_y_position_update_callback`. Also makes callback
private in `BlockMarginState`, because resetting it independently of
currently accumulated margins is incorrect.

Lots of test expectations are updated, but there is no visual
difference.

Fixes https://github.com/LadybirdBrowser/ladybird/issues/6074
2025-09-08 14:09:06 +02:00

14 lines
No EOL
235 B
HTML

<!DOCTYPE html><style>
body {
margin: 0;
}
.bump {
margin-top: 100px;
}
.content {
background: green;
width: 100px;
height: 100px;
margin-top: 200px;
}
</style><div class="bump"></div><div class="content"></div>