Files
rust_browser/tests/goldens/expected/124-float-clear-right.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

19 lines
1.3 KiB
Plaintext

DisplayList items=17
SolidRect rect=(8, 76, 784, 39.199997) color=#00ff00
SolidRect rect=(642, 16, 150, 60) color=#0000ff
Text rect=(8, 17.6, 31.165932, 16) text="Some" color=#000000 font_size=16
Text rect=(42.220264, 17.6, 21.321585, 16) text="text" color=#000000 font_size=16
Text rect=(66.596176, 17.6, 24.340675, 16) text="next" color=#000000 font_size=16
Text rect=(93.99118, 17.6, 11.348018, 16) text="to" color=#000000 font_size=16
Text rect=(108.393524, 17.6, 18.126286, 16) text="the" color=#000000 font_size=16
Text rect=(129.57414, 17.6, 25.010277, 16) text="float" color=#000000 font_size=16
Text rect=(18, 87.6, 22.449337, 16) text="This" color=#000000 font_size=16
Text rect=(43.50367, 87.6, 32.36417, 16) text="clears" color=#000000 font_size=16
Text rect=(78.92217, 87.6, 18.126286, 16) text="the" color=#000000 font_size=16
Text rect=(100.10279, 87.6, 26.60793, 16) text="right" color=#000000 font_size=16
Text rect=(129.76506, 87.6, 25.010277, 16) text="float" color=#000000 font_size=16
Text rect=(157.82967, 87.6, 21.07489, 16) text="and" color=#000000 font_size=16
Text rect=(181.9589, 87.6, 44.73421, 16) text="appears" color=#000000 font_size=16
Text rect=(229.74744, 87.6, 33.221733, 16) text="below" color=#000000 font_size=16
Text rect=(266.0235, 87.6, 7.2716594, 16) text="it" color=#000000 font_size=16