All checks were successful
ci / fast (linux) (push) Successful in 6m52s
Self-collapsing elements (zero height, no padding/border, no BFC, no line boxes) now have their top and bottom margins collapse together, and child margins propagate through parents with auto height and no bottom padding/border. This replaces the pairwise collapse_margins() function with a MarginSet accumulator that tracks max positive and min negative margins separately, correctly resolving chains of 4+ margins. Key changes: - Add is_self_collapsing() post-layout predicate and gather_all_margins() - Add gather_margin_bottom() for bottom margin propagation with a guard against propagation when max-height constrains the parent - Replace prev_margin_bottom with MarginSet-based pending_margins in the sibling layout loop - Handle clearance + self-collapsing interaction correctly Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
602 B
Plaintext
8 lines
602 B
Plaintext
DisplayList items=6
|
|
Text rect=(8, 32.64, 31.412628, 32) text="H1" color=#000000 font_size=32 font_weight=700
|
|
Text rect=(8, 91.68001, 23.559471, 24) text="H2" color=#000000 font_size=24 font_weight=700
|
|
Text rect=(8, 139.87201, 18.376387, 18.72) text="H3" color=#000000 font_size=18.72 font_weight=700
|
|
Text rect=(8, 183.34402, 15.706314, 16) text="H4" color=#000000 font_size=16 font_weight=700
|
|
Text rect=(8, 224.44962, 13.036241, 13.28) text="H5" color=#000000 font_size=13.28 font_weight=700
|
|
Text rect=(8, 265.1072, 10.523231, 10.72) text="H6" color=#000000 font_size=10.72 font_weight=700
|