Files
rust_browser/tests/goldens/expected/197-first-letter-basic.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

13 lines
979 B
Plaintext

DisplayList items=11
Text rect=(8, 19.2, 17.40969, 32) text="H" color=#ff0000 font_size=32
Text rect=(25.40969, 31.758003, 19.79442, 16) text="ello" color=#000000 font_size=16
Text rect=(48.258442, 31.758003, 34.596184, 16) text="world." color=#000000 font_size=16
Text rect=(85.90896, 31.758003, 20.417034, 16) text="The" color=#000000 font_size=16
Text rect=(109.38032, 31.758003, 21.791481, 16) text="first" color=#000000 font_size=16
Text rect=(134.22614, 31.758003, 29.61527, 16) text="letter" color=#000000 font_size=16
Text rect=(166.89574, 31.758003, 37.509544, 16) text="should" color=#000000 font_size=16
Text rect=(207.45961, 31.758003, 13.85022, 16) text="be" color=#000000 font_size=16
Text rect=(224.36417, 31.758003, 28.323053, 16) text="large" color=#000000 font_size=16
Text rect=(255.74156, 31.758003, 21.07489, 16) text="and" color=#000000 font_size=16
Text rect=(279.8708, 31.758003, 21.85022, 16) text="red." color=#000000 font_size=16