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
949 B
Plaintext
14 lines
949 B
Plaintext
DisplayList items=12
|
|
SolidRect rect=(8, 16, 784, 19.2) color=#00ff00
|
|
SolidRect rect=(8, 16, 200, 40) color=#ff0000
|
|
Text rect=(208, 17.6, 29.908957, 16) text="Short" color=#000000 font_size=16
|
|
Text rect=(240.96329, 17.6, 21.321585, 16) text="text" color=#000000 font_size=16
|
|
Text rect=(265.3392, 17.6, 33.527164, 16) text="wraps" color=#000000 font_size=16
|
|
Text rect=(301.9207, 17.6, 40.293686, 16) text="around" color=#000000 font_size=16
|
|
Text rect=(345.26868, 17.6, 18.126286, 16) text="the" color=#000000 font_size=16
|
|
Text rect=(366.44928, 17.6, 25.010277, 16) text="float" color=#000000 font_size=16
|
|
Text rect=(394.5139, 17.6, 14.367107, 16) text="on" color=#000000 font_size=16
|
|
Text rect=(411.9353, 17.6, 18.126286, 16) text="the" color=#000000 font_size=16
|
|
Text rect=(433.1159, 17.6, 26.60793, 16) text="right" color=#000000 font_size=16
|
|
Text rect=(462.77817, 17.6, 22.508076, 16) text="side" color=#000000 font_size=16
|