Files
rust_browser/tests/goldens/expected/118-float-with-clear-on-float.dl.txt
Zachary D. Rowitsch a2466a0611 Fix float children not repositioned after float placement
Children of floated elements were rendered at the float's initial in-flow
position instead of inside the float's final positioned box. After laying
out children and repositioning the float in the parent's float context,
offset all children and inline fragments by the position delta.

Also fixes existing golden 118 (float-with-clear-on-float) where text
inside a cleared float was incorrectly positioned at y=8 instead of y=58.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 19:16:15 -05:00

8 lines
437 B
Plaintext

DisplayList items=6
SolidRect rect=(8, 8, 100, 50) color=#ff0000
SolidRect rect=(8, 58, 120, 40) color=#0000ff
Text rect=(8, 58, 40.305435, 16) text="Second" color=#000000 font_size=16
Text rect=(51.359768, 58, 25.010277, 16) text="float" color=#000000 font_size=16
Text rect=(79.42437, 58, 23.765053, 16) text="with" color=#000000 font_size=16
Text rect=(8, 77.2, 47.823788, 16) text="clear:left" color=#000000 font_size=16