The browser builds a DOM from HTML and a CSSOM from CSS. It determines what to draw, calculates sizes and positions during layout, then paints.
The demo fills its preview as each stage completes. Changing DOM structure or size-affecting CSS can require later stages to run again.
When to use
Use this sequence when locating layout or paint costs in a slow interaction.