CSS contain-intrinsic-inline-size Property

❮ Previous Reference Next ❯


#contained {
  border: 5px solid green;
  inline-size: 150px;
  content-visibility: auto;
  contain-intrinsic-inline-size: 150px;
  contain-intrinsic-block-size: 50px;

.child {
  border: 5px solid red;
  background: blue;
  block-size: 50px;
  inline-size: 150px;


The contain-intrinsic-inline-size CSS property defines the inline-size 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.containIntrinsicInlineSize="none|length|auto length|initial|inherit|revert|revert-layer|unset";

Standard Syntax

contain-intrinsic-inline-size: 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 inline size.
length The element has the specified inline size, expressed using the (length) data type.
auto length The element is in size containment and skipping its contents the inline size is remembered from the actual size of the element when it was last able to render its child elements.
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-inline-size: none;
❮ Previous Reference Next ❯