we (web engine): Experimental web browser project to understand the limits of Claude

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>


+493 -9
1 changed file