Render Flow - First-child and last-child
[Parse CSS selectors] -> [Match :first-child and :last-child] -> [Apply styles to matched elements] -> [Recalculate layout] -> [Paint changes] -> [Composite layers]
The browser reads CSS selectors, finds elements that are the first or last child of their parent, applies the styles, recalculates layout, paints the changes, and composites the final view.