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>
16 lines
1.1 KiB
Plaintext
16 lines
1.1 KiB
Plaintext
DisplayList items=14
|
|
SolidRect rect=(8, 16, 784, 19.2) color=#00ff00
|
|
SolidRect rect=(8, 16, 150, 60) color=#ff0000
|
|
SolidRect rect=(642, 16, 150, 60) color=#0000ff
|
|
Text rect=(158, 17.6, 23.612333, 16) text="Text" color=#000000 font_size=16
|
|
Text rect=(184.66667, 17.6, 47.835533, 16) text="between" color=#000000 font_size=16
|
|
Text rect=(235.55653, 17.6, 17.938326, 16) text="left" color=#000000 font_size=16
|
|
Text rect=(256.5492, 17.6, 21.07489, 16) text="and" color=#000000 font_size=16
|
|
Text rect=(280.6784, 17.6, 26.60793, 16) text="right" color=#000000 font_size=16
|
|
Text rect=(310.34067, 17.6, 30.637295, 16) text="floats" color=#000000 font_size=16
|
|
Text rect=(344.0323, 17.6, 33.527164, 16) text="wraps" color=#000000 font_size=16
|
|
Text rect=(380.61377, 17.6, 10.290749, 16) text="in" color=#000000 font_size=16
|
|
Text rect=(393.95883, 17.6, 18.126286, 16) text="the" color=#000000 font_size=16
|
|
Text rect=(415.13943, 17.6, 38.12041, 16) text="middle" color=#000000 font_size=16
|
|
Text rect=(456.31418, 17.6, 31.706316, 16) text="space" color=#000000 font_size=16
|