OrderNot attempted
The rendering pipeline
Order the steps from HTML/CSS text to pixels on screen.
Drag the rows, or use the arrows, to put them in order from first to last.
- Composite: stack the layers (transforms, opacity) on the GPU
- Paint: draw text, colours, borders, shadows into layers
- Layout: compute size and position of every box
- Combine them into the render tree (visible nodes only)
- Parse HTML into the DOM and CSS into the CSSOM
Show answer & explanation
Correct order:
- Parse HTML into the DOM and CSS into the CSSOM
- Combine them into the render tree (visible nodes only)
- Layout: compute size and position of every box
- Paint: draw text, colours, borders, shadows into layers
- Composite: stack the layers (transforms, opacity) on the GPU
Changing a layout property (width, top) re-runs layout, paint and composite. Changing colour skips layout. Changing transform/opacity can skip straight to composite, which is why animations should use them.