IT lexicon › Web › Layout Containment

Layout Containment

Web På svenska → Updated: 2026-11-15

A CSS containment constraint that isolates an element's layout from the rest of the page.

With contain: layout, the browser only recalculates layout inside the container when its content changes. Changes inside never propagate outside, which eliminates reflow cascades. Large pages can update small regions without re-laying out the whole document. Layout containment is often the most impactful containment type for performance-critical applications.

← Back to the lexicon