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>
9 lines
462 B
Plaintext
9 lines
462 B
Plaintext
DisplayList items=7
|
|
SolidRect rect=(8, 8, 300, 30) color=#d3d3d3
|
|
SolidRect rect=(8, 8, 76.86491, 30) color=#ff0000
|
|
Text rect=(8, 8, 7.506608, 16) text="A" color=#000000 font_size=16
|
|
SolidRect rect=(84.86491, 8, 146.35243, 30) color=#008000
|
|
Text rect=(84.86491, 8, 7.6358294, 16) text="B" color=#000000 font_size=16
|
|
SolidRect rect=(231.21735, 8, 76.78268, 30) color=#ff0000
|
|
Text rect=(231.21735, 8, 7.424376, 16) text="C" color=#000000 font_size=16
|