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>
5 lines
315 B
Plaintext
5 lines
315 B
Plaintext
DisplayList items=3
|
|
Text rect=(8, 24.64, 64.56387, 32) text="Some" color=#000000 font_size=32 font_weight=700
|
|
Text rect=(78.67254, 24.64, 46.214394, 32) text="test" color=#000000 font_size=32 font_weight=700
|
|
Text rect=(130.99559, 24.64, 91.77093, 32) text="content" color=#000000 font_size=32 font_weight=700
|