Size Containment
A CSS containment constraint that tells the browser a container's size doesn't depend on its contents.
contain: size requires you to explicitly set width and height. The browser assumes the container won't grow or shrink when its contents change, skipping the layout pass needed to measure content. Size containment is powerful but strict—use it only for components with known, fixed dimensions.