contain-intrinsic-height

Sets the placeholder height for an element under size containment. It ensures the element occupies space even if its content isn't being rendered yet.

Quick example

.lazy-card {
  content-visibility: auto;
  /* Reserves space to prevent page jumping */
  contain-intrinsic-height: 300px;
}

Quick facts

Initial value
none
Inherited
No
Applies to
elements for which size containment can apply
Animation type
byComputedValueType

Values

autonone

contain-intrinsic-height Browser Support

Newly available Since 2023 93% global usage

Since 2023 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Works in all modern browsers. May need a fallback for older browsers.

95+
107+
17+
95+
ESC