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>
9 lines
597 B
Plaintext
9 lines
597 B
Plaintext
DisplayList items=7
|
|
Text rect=(8, 17.6, 24.622612, 16) text="Tom" color=#000000 font_size=16
|
|
Text rect=(35.676945, 17.6, 8.599119, 16) text="&" color=#000000 font_size=16
|
|
Text rect=(47.330395, 17.6, 25.527166, 16) text="Jerry" color=#000000 font_size=16
|
|
Text rect=(75.91189, 17.6, 40.14097, 16) text="<span>" color=#000000 font_size=16
|
|
Text rect=(119.107185, 17.6, 8.599119, 16) text="&" color=#000000 font_size=16
|
|
Text rect=(130.76064, 17.6, 31.400883, 16) text="literal" color=#000000 font_size=16
|
|
Text rect=(165.21585, 17.6, 24.469896, 16) text="text." color=#000000 font_size=16
|