Render Flow - Why CSS variables are used
Parse CSS file
Identify :root selector
Store CSS variables in memory
Apply variables where used
Calculate final styles
Layout and paint elements
The browser reads the CSS, stores variables defined under :root or other selectors, then replaces variable references with their values during style calculation before rendering.