CSS contain-intrinsic-width Property Reference
The CSS contain-intrinsic-width property is a standard property in CSS Box Sizing. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
contain-intrinsic-width overview
The CSS contain-intrinsic-width property is a standard property in CSS Box Sizing. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | auto? [ none | <length> ] |
| Initial value | none |
| Applies to | elementsForWhichSizeContainmentCanApply |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecifiedWithLengthValuesComputed |
| Animation type | byComputedValueType |
| Media | visual |
| Specification group | CSS Box Sizing |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set contain-intrinsic-width. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
contain-intrinsic-width: initial;
}
.inherit-example {
contain-intrinsic-width: inherit;
}
@supports (contain-intrinsic-width: initial) {
.supported {
contain-intrinsic-width: initial;
}
}