Grid items (Block boxes) need to establish their own inline formatting context to create line boxes for text content. Previously, layout_grid_item_children dispatched calculate_block_layout on each child individually, but anonymous text nodes have no children of their own, so their IFC was always empty. The fix calls layout_block_children on the grid item itself, which properly flattens text children into line boxes. Also adds grid test coverage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 lines
511 B
Plaintext
10 lines
511 B
Plaintext
DisplayList items=8
|
|
SolidRect rect=(8, 8, 200, 40) color=#bbbbbb
|
|
Text rect=(8, 8, 52.29956, 16) text="Spanning" color=#000000 font_size=16
|
|
SolidRect rect=(208, 8, 100, 40) color=#eeeeee
|
|
Text rect=(208, 8, 7.6358294, 16) text="B" color=#000000 font_size=16
|
|
SolidRect rect=(208, 48, 100, 40) color=#999999
|
|
Text rect=(208, 48, 36.217327, 16) text="Placed" color=#000000 font_size=16
|
|
SolidRect rect=(8, 48, 100, 40) color=#eeeeee
|
|
Text rect=(8, 48, 8.5756235, 16) text="D" color=#000000 font_size=16
|