contain-intrinsic-block-size
Widely availableSince 202396% of users
Defines the 'placeholder' block-size (height) of an element when it is subject to size containment (e.g., when off-screen). This prevents layout shifts when content loads or scrolls into view.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since September 2023. Widely available since March 2026.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- elements for which size containment can apply
- Animation type
- byComputedValueType
Quick example
.heavy-section {
content-visibility: auto;
/* Reserves 500px of height for the off-screen content */
contain-intrinsic-block-size: 500px;
}Values
autononecontain-intrinsic-block-size browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.Safe to use without fallbacks.
Usage96%of people can use this4% use a browser without it.
Browsers
95+
107+
17+
95+Mobile
95+Android
107+Android
17+iOS