Render Flow - Flex wrap
Parse selector: .container
Match element: div.container
Apply display:flex
Apply flex-wrap property
Calculate flex items layout
Wrap items to new line if needed
Paint items
Composite final layout
The browser reads the CSS selector, applies flexbox layout to the container, then uses the flex-wrap property to decide if flex items stay in one line or wrap to new lines before painting.