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, 24.64, 98.06755, 32) text="Heading" color=#000000 font_size=32 font_weight=700
|
|
Text rect=(112.176216, 24.64, 13.43906, 32) text="1" color=#000000 font_size=32 font_weight=700
|
|
Text rect=(8, 83.68001, 73.55066, 24) text="Heading" color=#000000 font_size=24 font_weight=700
|
|
Text rect=(86.13216, 83.68001, 10.079295, 24) text="2" color=#000000 font_size=24 font_weight=700
|
|
Text rect=(8, 131.87201, 57.369514, 18.72) text="Heading" color=#000000 font_size=18.72 font_weight=700
|
|
Text rect=(68.943085, 131.87201, 7.86185, 18.72) text="3" color=#000000 font_size=18.72 font_weight=700
|
|
Text rect=(8, 175.34401, 49.033775, 16) text="Heading" color=#000000 font_size=16 font_weight=700
|
|
Text rect=(60.088108, 175.34401, 6.71953, 16) text="4" color=#000000 font_size=16 font_weight=700
|
|
Text rect=(8, 216.4496, 40.698032, 13.28) text="Heading" color=#000000 font_size=13.28 font_weight=700
|
|
Text rect=(51.233128, 216.4496, 5.57721, 13.28) text="5" color=#000000 font_size=13.28 font_weight=700
|
|
Text rect=(8, 257.1072, 32.852627, 10.72) text="Heading" color=#000000 font_size=10.72 font_weight=700
|
|
Text rect=(42.89903, 257.1072, 4.502085, 10.72) text="6" color=#000000 font_size=10.72 font_weight=700
|