Files
rust_browser/tests/goldens/expected/118-float-with-clear-on-float.layout.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

54 lines
1.8 KiB
Plaintext

LayoutBox node=#1 tag=html box=block
content: (0, 0, 800, 98)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#9 tag=body box=block
content: (8, 8, 784, 0)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
inline_context: 0 lines, height=0, max_width=0
LayoutBox node=#10 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#11 tag=div box=block
content: (8, 8, 100, 50)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 0 lines, height=0, max_width=0
LayoutBox node=#12 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "
LayoutBox node=#13 tag=div box=block
content: (8, 58, 120, 40)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
inline_context: 2 lines, height=38.4, max_width=98.24375
line[0]: rect=(8, 58, 98.24375, 19.2) fragments=3
frag[0]: rect=(8, 58, 40.305435, 16) text="Second" start=false end=false
frag[1]: rect=(51.359768, 58, 25.010277, 16) text="float" start=false end=false
frag[2]: rect=(79.42437, 58, 23.765053, 16) text="with" start=false end=false
line[1]: rect=(8, 77.2, 47.823788, 19.2) fragments=1
frag[0]: rect=(8, 77.2, 47.823788, 16) text="clear:left" start=false end=false
LayoutBox node=#14 tag=anonymous box=anon
content: (0, 50, 146.06757, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: "Second float with cl..."
LayoutBox node=#15 tag=anonymous box=anon
content: (0, 0, 3.0543318, 16)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
text: " "