Layer Tree
The rendering engine's hierarchy of 2D layers that can be drawn and composited independently, created after the render tree is built.
After building the render tree, the browser creates a layer tree — an abstraction where certain elements are grouped into separate compositing layers that can be handled independently. This is an optimization: if only one layer changes, the others don't need to be redrawn. Layering also enables modern effects like blur, opacity, and 3D transforms, which the GPU can accelerate during composition.
A typical layer tree contains a base layer for main content, separate layers for floated elements, blocks with transform or will-change, and layers for modal dialogs. Each layer is rasterized to its own surface before being composited into the final image.