Skip to main content
InterviewHubPRO
Section Overview
Q44

Question 44 of 50

Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)

88%
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, or top triggers expensive Reflow (Layout) and Repaint.
  • Modifying transform and opacity skips 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.