Idea · Jun 8, 2026
Tiny Browser Renderer
A structured multi-week project where students build a minimal HTML and CSS rendering engine from scratch, guided by a series of milestones. Each milestone (tokenizer, DOM tree, box model layout, paint) is scaffolded as a test suite students must pass, with an optional AI pair-programming step where students document what the agent helped with versus what they built themselves.
Key features
- Milestone 1: tokenize a subset of HTML tags and build a DOM tree
- Milestone 2: implement the CSS box model (width, height, margin, padding, border) and a basic block layout algorithm
- Milestone 3: render the laid-out tree to an HTML canvas or SVG, producing a screenshot comparable to a reference image
- Reflection requirement: a short writeup on which parts were solved with AI assistance and what they learned about parser design and layout algorithms