Render Flow - Media queries
Parse CSS file
Detect @media rule
Evaluate media condition
If condition true: apply enclosed styles
If condition false: ignore enclosed styles
Calculate final styles
Layout and paint
The browser reads CSS and finds media queries. It checks if the screen matches the query. If yes, it applies those styles. Then it lays out and paints the page.