Caffeinated Coder
Book an appointment
Lesson 18 · Motion and scale

How the browser renders: style, layout, paint

Follow one small card from code to pixels. The browser turns the DOM and the CSSOM into a frame in four stages: style works out every element's values, layout sizes and places each box, paint fills the pixels into layers, and composite puts the layers on the screen. Then change three properties and watch each one rerun only the stages it needs: width all four, background skips layout, translate skips layout and paint.

12 min10 steps5 questionsAdvanced
Fig 18 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.