All checks were successful
ci / fast (linux) (push) Successful in 6m43s
The strut half-leading calculation in apply_vertical_align used the effective line height (inflated by tall inline-block elements like images) instead of the CSS computed line-height. For a line with a 76px image and CSS line-height: 15px, the strut got half_leading = (76 - font_height)/2 ≈ 30, inflating descent by ~30px. This caused floated containers to overflow their parents, leaking through shared BFC float contexts and displacing sibling floats. Fixes: pass CSS computed line-height separately for strut calculation; also pass parent font family/weight/style for accurate strut metrics. Adds float=left/right annotations to layout tree dumps for debugging. 32 WPT tests promoted from known_fail to pass. BMOW page sidebar moves from x=73 to x=829 (correct float:right), content from y=4375 to y=114. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
LayoutBox node=#1 tag=html box=block
|
|
content: (0, 0, 800, 120)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
LayoutBox node=#8 tag=body box=block
|
|
content: (8, 8, 784, 104)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 8 8 8 8
|
|
LayoutBox node=#10 tag=div box=block
|
|
content: (8, 8, 784, 104)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
inline_context: 1 lines, height=104, max_width=214.26138
|
|
line[0]: rect=(8, 8, 214.26138, 104) fragments=3
|
|
frag[0]: rect=(8, 41.600002, 36.88693, 16) text="Before" start=false end=false
|
|
frag[1]: rect=(47.94126, 8, 144, 104) text=(none) start=false end=false
|
|
frag[2]: rect=(194.99559, 41.600002, 27.265785, 16) text="After" start=false end=false
|
|
LayoutBox node=#11 tag=anonymous box=anon
|
|
content: (0, 0, 39.94126, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "Before "
|
|
LayoutBox node=#12 tag=span box=inline-block
|
|
content: (79.94126, 40, 80, 40)
|
|
padding: 10 10 10 10
|
|
border: 2 2 2 2
|
|
margin: 20 20 20 20
|
|
inline_context: 1 lines, height=19.2, max_width=20.957413
|
|
line[0]: rect=(79.94126, 40, 20.957413, 19.2) fragments=1
|
|
frag[0]: rect=(79.94126, 41.6, 20.957415, 16) text="Box" start=false end=false
|
|
LayoutBox node=#13 tag=anonymous box=anon
|
|
content: (39.94126, 0, 20.957415, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: "Box"
|
|
LayoutBox node=#14 tag=anonymous box=anon
|
|
content: (0, 0, 30.320118, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: " After"
|