Render Flow - Visibility property
Parse CSS rules
Match selector to element
Apply visibility property
Calculate layout (visibility affects painting)
Paint element if visible
Composite layers
The browser reads the CSS, finds elements matching the selector, applies the visibility property, then decides whether to paint the element or not without changing layout space.