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>
11 lines
645 B
Plaintext
11 lines
645 B
Plaintext
DisplayList items=9
|
|
SolidRect rect=(8, 35.2, 784, 70) color=#d3d3d3
|
|
SolidRect rect=(23, 50.2, 50, 40) color=#ff0000
|
|
SolidRect rect=(83, 50.2, 50, 40) color=#008000
|
|
Text rect=(8, 17.6, 23.612333, 16) text="Text" color=#000000 font_size=16
|
|
Text rect=(34.666664, 17.6, 36.47577, 16) text="before" color=#000000 font_size=16
|
|
Text rect=(8, 111.842, 21.321585, 16) text="text" color=#000000 font_size=16
|
|
Text rect=(32.375916, 111.842, 26.349485, 16) text="after" color=#000000 font_size=16
|
|
Text rect=(23, 51.8, 7.506608, 16) text="A" color=#000000 font_size=16
|
|
Text rect=(83, 51.8, 7.6358294, 16) text="B" color=#000000 font_size=16
|