Skip to content

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.

  1. Composite: stack the layers (transforms, opacity) on the GPU
  2. Paint: draw text, colours, borders, shadows into layers
  3. Layout: compute size and position of every box
  4. Combine them into the render tree (visible nodes only)
  5. Parse HTML into the DOM and CSS into the CSSOM
Show answer & explanation

Correct order:

  1. Parse HTML into the DOM and CSS into the CSSOM
  2. Combine them into the render tree (visible nodes only)
  3. Layout: compute size and position of every box
  4. Paint: draw text, colours, borders, shadows into layers
  5. 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.