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>
13 lines
910 B
Plaintext
13 lines
910 B
Plaintext
DisplayList items=11
|
|
SolidRect rect=(8, 16, 200, 51.199997) color=#add8e6
|
|
Text rect=(8, 20.8, 23.847282, 16) text="First" color=#000000 font_size=16
|
|
Text rect=(34.901615, 20.8, 19.947138, 16) text="line" color=#000000 font_size=16
|
|
Text rect=(57.903088, 20.8, 11.148312, 16) text="of" color=#000000 font_size=16
|
|
Text rect=(72.10573, 20.8, 24.469896, 16) text="text." color=#000000 font_size=16
|
|
Text rect=(99.62995, 20.8, 40.305435, 16) text="Second" color=#000000 font_size=16
|
|
Text rect=(142.98973, 20.8, 19.947138, 16) text="line" color=#000000 font_size=16
|
|
Text rect=(165.99121, 20.8, 11.148312, 16) text="of" color=#000000 font_size=16
|
|
Text rect=(180.19386, 20.8, 21.321585, 16) text="text" color=#000000 font_size=16
|
|
Text rect=(8, 46.399998, 22.331863, 16) text="that" color=#000000 font_size=16
|
|
Text rect=(33.386196, 46.399998, 36.675476, 16) text="wraps." color=#000000 font_size=16
|