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>
377 B
377 B