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
This commit is contained in:
Aliaksandr Kalenik
2025-09-07 14:50:56 +02:00
committed by Alexander Kalenik
parent 01bfb5bc81
commit e2eb8716e5
Notes: github-actions[bot] 2025-09-08 12:10:16 +00:00
19 changed files with 123 additions and 52 deletions

View File

@@ -2,5 +2,5 @@ Harness status: OK
Found 1 tests
1 Fail
Fail CSSOM View - 5 - extensions to the Document interface
1 Pass
Pass CSSOM View - 5 - extensions to the Document interface