Render Flow - Before pseudo-element
Parse CSS selector with ::before
Create virtual ::before element
Insert ::before as first child of target element
Apply styles to ::before
Calculate layout including ::before
Paint ::before content
Composite all layers
The browser reads the CSS selector with ::before, creates a virtual element before the target's content, applies styles, and includes it in layout and painting.