Files
rust_browser/tests/goldens/expected/044-paragraph-text.dl.txt
Zachary D. Rowitsch 0863153acd Implement parent-child margin collapsing (CSS 2.1 §8.3.1)
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>
2026-03-13 18:41:50 -04:00

17 lines
1.3 KiB
Plaintext

DisplayList items=15
Text rect=(8, 17.6, 23.847282, 16) text="First" color=#000000 font_size=16
Text rect=(34.901615, 17.6, 58.408222, 16) text="paragraph" color=#000000 font_size=16
Text rect=(96.36417, 17.6, 23.765053, 16) text="with" color=#000000 font_size=16
Text rect=(123.18355, 17.6, 30.343613, 16) text="some" color=#000000 font_size=16
Text rect=(156.5815, 17.6, 24.469896, 16) text="text." color=#000000 font_size=16
Text rect=(8, 52.800003, 40.305435, 16) text="Second" color=#000000 font_size=16
Text rect=(51.359768, 52.800003, 58.408222, 16) text="paragraph" color=#000000 font_size=16
Text rect=(112.82232, 52.800003, 23.765053, 16) text="with" color=#000000 font_size=16
Text rect=(139.64171, 52.800003, 29.568281, 16) text="more" color=#000000 font_size=16
Text rect=(172.26433, 52.800003, 24.469896, 16) text="text." color=#000000 font_size=16
Text rect=(8, 88, 28.898678, 16) text="Third" color=#000000 font_size=16
Text rect=(39.95301, 88, 58.408222, 16) text="paragraph" color=#000000 font_size=16
Text rect=(101.415565, 88, 11.348018, 16) text="to" color=#000000 font_size=16
Text rect=(115.81791, 88, 30.508074, 16) text="verify" color=#000000 font_size=16
Text rect=(149.38033, 88, 45.744495, 16) text="spacing." color=#000000 font_size=16