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>
14 lines
1.2 KiB
Plaintext
14 lines
1.2 KiB
Plaintext
DisplayList items=12
|
|
Text rect=(8, 17.6, 28.193832, 16) text="Code" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(43.24229, 17.6, 21.145374, 16) text="via" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(71.43613, 17.6, 28.193832, 16) text="code" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(106.67842, 17.6, 21.145374, 16) text="tag" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(8, 52.800003, 84.5815, 16) text="Preformatted" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(99.62996, 52.800003, 28.193832, 16) text="text" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(8, 88, 63.436123, 16) text="Monospace" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(78.48459, 88, 21.145374, 16) text="via" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(106.67842, 88, 21.145374, 16) text="CSS" color=#000000 font_size=16 font_family=monospace
|
|
Text rect=(8, 123.200005, 40.36417, 16) text="Default" color=#000000 font_size=16
|
|
Text rect=(51.418503, 123.200005, 53.06314, 16) text="sans-serif" color=#000000 font_size=16
|
|
Text rect=(107.53597, 123.200005, 21.321585, 16) text="text" color=#000000 font_size=16
|