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
418 B
Plaintext
9 lines
418 B
Plaintext
DisplayList items=7
|
|
SolidRect rect=(8, 8, 100, 200) color=#d3d3d3
|
|
SolidRect rect=(8, 8, 80, 30) color=#ff0000
|
|
Text rect=(8, 8, 7.506608, 16) text="A" color=#000000 font_size=16
|
|
SolidRect rect=(8, 38, 80, 30) color=#008000
|
|
Text rect=(8, 38, 7.6358294, 16) text="B" color=#000000 font_size=16
|
|
SolidRect rect=(8, 68, 80, 30) color=#0000ff
|
|
Text rect=(8, 68, 7.424376, 16) text="C" color=#000000 font_size=16
|