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>
10 lines
674 B
Plaintext
10 lines
674 B
Plaintext
DisplayList items=8
|
|
Text rect=(39.582966, 16, 4.4170337, 16) text="•" color=#000000 font_size=16
|
|
Text rect=(74.13216, 51.2, 9.867842, 16) text="1." color=#000000 font_size=16
|
|
Text rect=(74.13216, 70.4, 9.867842, 16) text="2." color=#000000 font_size=16
|
|
Text rect=(39.582966, 121.600006, 4.4170337, 16) text="•" color=#000000 font_size=16
|
|
Text rect=(48, 17.6, 25.480175, 16) text="Fruit" color=#000000 font_size=16
|
|
Text rect=(88, 52.800003, 31.612337, 16) text="Apple" color=#000000 font_size=16
|
|
Text rect=(88, 72, 41.92658, 16) text="Banana" color=#000000 font_size=16
|
|
Text rect=(48, 123.20001, 55.236416, 16) text="Vegetable" color=#000000 font_size=16
|