HTML & CSS · Senior · Question 5 of 75
Which stages does the browser go through to update a frame after a style change?
- 1Paint → Layout → Style → Composite
- ✓Correct answer: Style → Layout → Paint → Composite
- 3Layout → Composite → Style → Paint
Explanation
The rendering pipeline: style recalculation (Style) → geometry (Layout/Reflow) → painting layer pixels (Paint) → layer composition (Composite). Changing width runs everything from Layout, changing color from Paint, while transform and opacity can get away with Composite alone.