CSS contain-intrinsic-height Property

❮ Previous Reference Next ❯


.container {
  border: 2px solid green;
  width: 120px;
  content-visibility: visible;
  contain-intrinsic-height: 40px;
  contain-intrinsic-width: 130px;
.child {
  border: 1px solid red;
  background: blue;
  height: 50px;
  width: 150px;


The contain-intrinsic-height CSS property sets the height of an element that a browser can use for layout when the element is subject to size containment.

Default value:none
JavaScript syntax:
object.style.containIntrinsicHeight="none|length|auto length|initial|inherit|revert|revert-layer|unset";

Standard Syntax

contain-intrinsic-height: none|length|auto length|initial|inherit|revert|revert-layer|unset;

Browser Support


Property Values

The following table describes the values of this property:

Value Description
none The element has no intrinsic height.
length The element has the specified height (length).
auto length A remembered value of the "normally rendered" element width if one exists and the element is skipping its contents (for example, when it is offscreen); otherwise the specified length.
initial Sets this property to its default value.
inherit If specified, the associated element takes the computed value of its parent element animation-delay property.
revert Reverts the cascaded value of the property from its current value to the value the property
revert-layer Rollback styles to the ones specified in previous cascade layers.
unset Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Default CSS Property Values

selectors {
  contain-intrinsic-height: none;
❮ Previous Reference Next ❯