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>
7 lines
433 B
Plaintext
7 lines
433 B
Plaintext
DisplayList items=5
|
|
Text rect=(23, 16.6, 20.957415, 16) text="Box" color=#000000 font_size=16
|
|
Text rect=(47.011745, 16.6, 23.765053, 16) text="with" color=#000000 font_size=16
|
|
Text rect=(73.83112, 16.6, 39.94126, 16) text="margin" color=#000000 font_size=16
|
|
Text rect=(116.82671, 16.6, 21.07489, 16) text="and" color=#000000 font_size=16
|
|
Text rect=(140.95595, 16.6, 45.779736, 16) text="padding" color=#000000 font_size=16
|