Render Flow - Class selectors
Parse CSS file
Identify selectors
Match class selectors to HTML elements with matching class attribute
Calculate specificity
Apply styles to matched elements
Layout update
Paint elements
Composite layers
The browser reads the CSS, finds class selectors, matches them to HTML elements with the same class attribute, applies styles, then updates the layout and paints the elements on screen.