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
897 B
Plaintext
14 lines
897 B
Plaintext
DisplayList items=12
|
|
SolidRect rect=(8, 16, 784, 19.2) color=#ffff00
|
|
SolidRect rect=(8, 16, 100, 40) color=#ff0000
|
|
SolidRect rect=(108, 16, 100, 80) color=#0000ff
|
|
SolidRect rect=(208, 16, 100, 50) color=#00ff00
|
|
Text rect=(308, 17.6, 23.612333, 16) text="Text" color=#000000 font_size=16
|
|
Text rect=(334.66666, 17.6, 29.039646, 16) text="flows" color=#000000 font_size=16
|
|
Text rect=(366.76062, 17.6, 40.293686, 16) text="around" color=#000000 font_size=16
|
|
Text rect=(410.10864, 17.6, 45.427315, 16) text="multiple" color=#000000 font_size=16
|
|
Text rect=(458.59027, 17.6, 30.637295, 16) text="floats" color=#000000 font_size=16
|
|
Text rect=(492.2819, 17.6, 11.148312, 16) text="of" color=#000000 font_size=16
|
|
Text rect=(506.48453, 17.6, 47.94126, 16) text="different" color=#000000 font_size=16
|
|
Text rect=(557.4801, 17.6, 41.268723, 16) text="heights" color=#000000 font_size=16
|