Files
ladybird/Tests/LibWeb/Layout/input/block-and-inline/margin-collapse-8.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

17 lines
320 B
HTML

<!DOCTYPE html><style>
body {
margin: 0;
}
.fixed {
background: blue;
height: 64px;
position: fixed;
top: 0;
}
.bump {
margin-top: 64px;
}
.content {
background: yellow;
}
</style><body><div class="fixed">Fixed stuff</div><div class="bump"></div><div class="content">Hello world!</div></body>