Single Child
Intent
Validate that a Screen with one child produces a box for both the Screen and the child, positioned at the origin with correct dimensions.
What is being tested
- A Card child is placed at (0, 0) inside the Screen
- The Card's explicit width and height are stored exactly
- The renderer produces two draw calls: Screen bg + Card rect
Acceptance criteria
✓ No errors ✓ Status bar shows "2 boxes" ✓ One Card rectangle visible at the top-left of the canvas ✓ Card dimensions match 300 × 200 px ✓ Cursor on "Card" line highlights the Card box
Example
Screen {
width: 800
height: 600
Card {
width: 300
height: 200
}
}