Layout recalculation
The browser's process of computing an element's final size, position, and spacing after style changes or DOM updates.
Layout recalculation follows style resolution — once the browser knows which CSS rules apply, it must compute actual dimensions, coordinates, and offsets for every element. This is more expensive than style resolution because it often requires sequential analysis of many elements (layout is parent-dependent).
Recalculation is frequently the critical rendering path bottleneck. CSS Grid and Flexbox often require multiple passes. Modern CSS `contain: layout` can isolate layout calculations to subtrees, preventing global recalculation.