Files
rust_browser/tests/goldens/expected/155-ordered-list-start.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
495 B
Plaintext

DisplayList items=6
Text rect=(34.132156, 16, 9.867842, 16) text="5." color=#000000 font_size=16
Text rect=(34.132156, 35.2, 9.867842, 16) text="6." color=#000000 font_size=16
Text rect=(34.132156, 54.4, 9.867842, 16) text="7." color=#000000 font_size=16
Text rect=(48, 17.6, 21.720999, 16) text="Five" color=#000000 font_size=16
Text rect=(48, 36.800003, 15.694567, 16) text="Six" color=#000000 font_size=16
Text rect=(48, 56, 32.928047, 16) text="Seven" color=#000000 font_size=16