Files
rust_browser/tests/goldens/expected/198-first-letter-float.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, 20.8, 25.726871, 48) text="D" color=#0000ff font_size=48
Text rect=(37.72687, 17.6, 19.183552, 16) text="rop" color=#000000 font_size=16
Text rect=(59.964756, 17.6, 19.453743, 16) text="cap" color=#000000 font_size=16
Text rect=(82.47283, 17.6, 28.663733, 16) text="style." color=#000000 font_size=16
Text rect=(114.190895, 17.6, 20.417034, 16) text="The" color=#000000 font_size=16
Text rect=(137.66226, 17.6, 21.791481, 16) text="first" color=#000000 font_size=16
Text rect=(162.50807, 17.6, 29.61527, 16) text="letter" color=#000000 font_size=16
Text rect=(195.17767, 17.6, 37.509544, 16) text="should" color=#000000 font_size=16
Text rect=(235.74156, 17.6, 25.010277, 16) text="float" color=#000000 font_size=16
Text rect=(263.80615, 17.6, 17.938326, 16) text="left" color=#000000 font_size=16
Text rect=(284.7988, 17.6, 21.07489, 16) text="and" color=#000000 font_size=16
Text rect=(37.72687, 36.800003, 13.85022, 16) text="be" color=#000000 font_size=16
Text rect=(54.631424, 36.800003, 28.323053, 16) text="large" color=#000000 font_size=16
Text rect=(86.008804, 36.800003, 21.07489, 16) text="and" color=#000000 font_size=16
Text rect=(110.13802, 36.800003, 27.289282, 16) text="blue." color=#000000 font_size=16