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

8 lines
601 B
Plaintext

DisplayList items=6
Text rect=(8, 24.64, 31.412628, 32) text="H1" color=#000000 font_size=32 font_weight=700
Text rect=(8, 83.68001, 23.559471, 24) text="H2" color=#000000 font_size=24 font_weight=700
Text rect=(8, 131.87201, 18.376387, 18.72) text="H3" color=#000000 font_size=18.72 font_weight=700
Text rect=(8, 175.34401, 15.706314, 16) text="H4" color=#000000 font_size=16 font_weight=700
Text rect=(8, 216.4496, 13.036241, 13.28) text="H5" color=#000000 font_size=13.28 font_weight=700
Text rect=(8, 257.1072, 10.523231, 10.72) text="H6" color=#000000 font_size=10.72 font_weight=700