Files
rust_browser/tests/goldens/expected/140-mixed-font-styles.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

7 lines
510 B
Plaintext

DisplayList items=5
Text rect=(8, 17.6, 41.491924, 16) text="Normal" color=#000000 font_size=16
Text rect=(52.546257, 17.6, 25.69163, 16) text="bold" color=#000000 font_size=16 font_weight=700
Text rect=(81.29221, 17.6, 24.986786, 16) text="italic" color=#000000 font_size=16 font_style=italic
Text rect=(109.33333, 17.6, 56.14097, 16) text="bold-italic" color=#000000 font_size=16 font_weight=700 font_style=italic
Text rect=(168.52864, 17.6, 39.823788, 16) text="normal" color=#000000 font_size=16