Compositing Layers
Rasterized 2D images of render-tree fragments that the GPU combines into the final frame through blending and transforms.
The browser doesn't rasterize its render tree as a single large image — it splits it into multiple layers. Each layer is a separate image in GPU memory. During compositing, these layers are combined via alpha blending, transforms, and effects. If you update a property that only triggers compositing (like transform), only the new layer combination is calculated — not the content redrawn.
The number of layers affects both memory and compositing speed. Too many layers becomes slow, too few means more redrawing. The browser automatically creates layers for certain things (fixed/sticky positioning, 3D transforms, canvas, video), but you can also manually force a layer with will-change: transform or transform: translateZ(0).