mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
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
17 lines
320 B
HTML
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> |