In a nutshell
A browser can't draw HTML and CSS directly — it runs them through a fixed pipeline. It parses the HTML into a DOM tree and the CSS into a CSSOM, combines them into a render tree of what's actually visible, computes each box's size and position (layout), fills in the pixels (paint), and stacks the layers onto the screen (composite). This whole sequence is the critical rendering path.