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>
15 lines
1.0 KiB
Plaintext
15 lines
1.0 KiB
Plaintext
DisplayList items=13
|
|
Text rect=(8, 17.6, 22.977974, 16) text="Visit" color=#000000 font_size=16
|
|
Text rect=(34.032307, 17.6, 20.34655, 16) text="Site" color=#0000ee font_size=16
|
|
SolidRect rect=(34.032307, 32.443718, 20.34655, 1.1428572) color=#0000ee
|
|
Text rect=(57.43319, 17.6, 23.060205, 16) text="One" color=#0000ee font_size=16
|
|
SolidRect rect=(57.43319, 32.443718, 23.060205, 1.1428572) color=#0000ee
|
|
Text rect=(83.54772, 17.6, 21.07489, 16) text="and" color=#000000 font_size=16
|
|
Text rect=(107.67694, 17.6, 20.34655, 16) text="Site" color=#0000ee font_size=16
|
|
SolidRect rect=(107.67694, 32.443718, 20.34655, 1.1428572) color=#0000ee
|
|
Text rect=(131.07784, 17.6, 22.872246, 16) text="Two" color=#0000ee font_size=16
|
|
SolidRect rect=(131.07784, 32.443718, 22.872246, 1.1428572) color=#0000ee
|
|
Text rect=(157.00441, 17.6, 16, 16) text="for" color=#000000 font_size=16
|
|
Text rect=(176.05875, 17.6, 29.568281, 16) text="more" color=#000000 font_size=16
|
|
Text rect=(208.68137, 17.6, 24.587372, 16) text="info." color=#000000 font_size=16
|