Files
rust_browser/tests/goldens/expected/137-font-weight-bold.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

16 lines
1.3 KiB
Plaintext

DisplayList items=14
Text rect=(8, 17.6, 26.079294, 16) text="Bold" color=#000000 font_size=16 font_weight=700
Text rect=(37.133625, 17.6, 17.256975, 16) text="via" color=#000000 font_size=16 font_weight=700
Text rect=(57.444935, 17.6, 7.424376, 16) text="b" color=#000000 font_size=16 font_weight=700
Text rect=(67.92364, 17.6, 19.559471, 16) text="tag" color=#000000 font_size=16 font_weight=700
Text rect=(8, 52.800003, 26.079294, 16) text="Bold" color=#000000 font_size=16 font_weight=700
Text rect=(37.133625, 52.800003, 17.256975, 16) text="via" color=#000000 font_size=16 font_weight=700
Text rect=(57.444935, 52.800003, 38.649048, 16) text="strong" color=#000000 font_size=16 font_weight=700
Text rect=(99.14831, 52.800003, 19.559471, 16) text="tag" color=#000000 font_size=16 font_weight=700
Text rect=(8, 88, 26.079294, 16) text="Bold" color=#000000 font_size=16 font_weight=700
Text rect=(37.133625, 88, 17.256975, 16) text="via" color=#000000 font_size=16 font_weight=700
Text rect=(57.444935, 88, 20.487518, 16) text="CSS" color=#000000 font_size=16 font_weight=700
Text rect=(8, 123.200005, 41.491924, 16) text="Normal" color=#000000 font_size=16
Text rect=(52.546257, 123.200005, 37.615273, 16) text="weight" color=#000000 font_size=16
Text rect=(93.21586, 123.200005, 21.321585, 16) text="text" color=#000000 font_size=16