Three bugs fixed: 1. Flex containers never had their Y coordinate set, causing them to render at Y=0 regardless of document position. 2. Flex item text was invisible because layout_children bypassed inline formatting context (IFC) setup. Replaced with layout_block_children (same approach as grid items) so text gets proper line boxes. 3. Flex item intrinsic sizing only checked grandchildren for text, missing deeper descendants like <li><a>Text</a></li>. Now recurses the full subtree. Additionally, added CSS min()/max() function support and Percent variant in grid template parsing (e.g., grid-template-columns: 1fr min(45rem, 90%) 1fr). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
590 B
Plaintext
12 lines
590 B
Plaintext
DisplayList items=10
|
|
SolidRect rect=(8, 8, 200, 80) color=#d3d3d3
|
|
SolidRect rect=(8, 33, 50, 30) color=#ff0000
|
|
Text rect=(8, 33, 7.506608, 16) text="A" color=#000000 font_size=16
|
|
SolidRect rect=(58, 33, 50, 30) color=#ff0000
|
|
Text rect=(58, 33, 7.6358294, 16) text="B" color=#000000 font_size=16
|
|
SolidRect rect=(8, 98, 200, 80) color=#d3d3d3
|
|
SolidRect rect=(8, 98, 50, 80) color=#ff0000
|
|
Text rect=(8, 98, 6.883994, 16) text="X" color=#000000 font_size=16
|
|
SolidRect rect=(58, 98, 50, 80) color=#ff0000
|
|
Text rect=(58, 98, 6.6490455, 16) text="Y" color=#000000 font_size=16
|