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>
8 lines
377 B
Plaintext
8 lines
377 B
Plaintext
DisplayList items=6
|
|
SolidRect rect=(8, 8, 100, 40) color=#dddddd
|
|
Text rect=(8, 8, 7.506608, 16) text="A" color=#000000 font_size=16
|
|
SolidRect rect=(108, 8, 200, 40) color=#dddddd
|
|
Text rect=(108, 8, 7.6358294, 16) text="B" color=#000000 font_size=16
|
|
SolidRect rect=(308, 8, 100, 40) color=#dddddd
|
|
Text rect=(308, 8, 7.424376, 16) text="C" color=#000000 font_size=16
|