CSS3 & Modern Layouts (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
Hardware Acceleration & Composite Layers: `transform`, `opacity`, and `will-change`.
senior LevelFormsSystem Design
In Simple Words: The browser rendering pipeline consists of: JavaScript -> Style -> Layout (Reflow) -> Paint -> Composite.
- Modifying
width,height,margin, ortoptriggers expensive Reflow (Layout) and Repaint. - Modifying
transformandopacityskips Layout and Paint entirely; changes are handled on the GPU Compositor Thread at 60/120 FPS. will-change: transform: Informs the GPU to promote an element to its own compositor layer in advance.