Something went wrong. Try again.
we (web engine): Experimental web browser project to understand the limits of Claude
Something went wrong. Try again.
Implement vertical margin collapsing for block-level elements master
Implements CSS2 §8.3.1 margin collapsing: - Adjacent sibling margins collapse (gap = max, not sum) - Parent-child margin collapsing via pre_collapse_margins pass - Empty block self-collapsing (top+bottom margins fold together) - Negative margin handling (positive+negative=sum, both negative=min) - Collapsing blocked by border, padding, or overflow!=visible (BFC) Adds overflow field to LayoutBox for BFC detection. Updates existing tests to reflect correct collapsed margin behavior and adds 9 new tests covering all collapsing scenarios. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author Pierre Le Fevre Co-author Claude Opus 4.6 (1M context) Committer Tangled Date (Mar 21, 2026, 6:22 PM UTC) Commit bbead018 bbead018c684d2cb35470b064d8b879a1232f592 Parent 615f1554 615f1554659fae42a99391960a80609ee9a1fa10