Files
rust_browser/tests/goldens/expected/045-mixed-headings-para.dl.txt
Zachary D. Rowitsch 0863153acd Implement parent-child margin collapsing (CSS 2.1 §8.3.1)
Add parent-first-child top and parent-last-child bottom margin collapsing
using a two-level approach (Level A shifts child inside parent, Level B
adjusts grandparent for effective collapsed margin). Fix pre-existing bug
in shift_subtree_x that incorrectly skipped absolute/fixed children.
Extract shared MARGIN_EPSILON constant, add 9 unit tests and 4 golden
tests (209-212), promote 31 WPT tests to pass. Includes code review
fixes: pub(crate) visibility for is_root_element, known-limitation docs,
and inline-content shift test coverage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-13 18:41:50 -04:00

15 lines
1.2 KiB
Plaintext

DisplayList items=13
Text rect=(8, 24.64, 58.525696, 32) text="Main" color=#000000 font_size=32 font_weight=700
Text rect=(72.63436, 24.64, 51.806168, 32) text="Title" color=#000000 font_size=32 font_weight=700
Text rect=(8, 82.880005, 69.75624, 16) text="Introductory" color=#000000 font_size=16
Text rect=(80.81057, 82.880005, 58.408222, 16) text="paragraph" color=#000000 font_size=16
Text rect=(142.27313, 82.880005, 33.221733, 16) text="under" color=#000000 font_size=16
Text rect=(178.54921, 82.880005, 18.126286, 16) text="the" color=#000000 font_size=16
Text rect=(199.72983, 82.880005, 24.31718, 16) text="title." color=#000000 font_size=16
Text rect=(8, 122.80001, 64.70484, 24) text="Section" color=#000000 font_size=24 font_weight=700
Text rect=(77.28634, 122.80001, 38.85462, 24) text="Title" color=#000000 font_size=24 font_weight=700
Text rect=(8, 170.72002, 44.15859, 16) text="Content" color=#000000 font_size=16
Text rect=(55.21292, 170.72002, 33.221733, 16) text="under" color=#000000 font_size=16
Text rect=(91.48898, 170.72002, 39.5301, 16) text="section" color=#000000 font_size=16
Text rect=(134.07343, 170.72002, 24.31718, 16) text="title." color=#000000 font_size=16