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
492 B
Plaintext
10 lines
492 B
Plaintext
DisplayList items=8
|
|
SolidRect rect=(8, 8, 100, 30) color=#cccccc
|
|
Text rect=(8, 8, 6.71953, 16) text="1" color=#000000 font_size=16
|
|
SolidRect rect=(128, 8, 100, 30) color=#cccccc
|
|
Text rect=(128, 8, 6.71953, 16) text="2" color=#000000 font_size=16
|
|
SolidRect rect=(8, 48, 100, 30) color=#cccccc
|
|
Text rect=(8, 48, 6.71953, 16) text="3" color=#000000 font_size=16
|
|
SolidRect rect=(128, 48, 100, 30) color=#cccccc
|
|
Text rect=(128, 48, 6.71953, 16) text="4" color=#000000 font_size=16
|