CSS container-type Property Reference
The CSS container-type property is a standard property in CSS Conditional Rules. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
container-type overview
The CSS container-type property is a standard property in CSS Conditional Rules. 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 | normal | [ [ size | inline-size ] || scroll-state ] |
| Initial value | normal |
| Applies to | allElements |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | color |
| Media | visual |
| Specification group | CSS Conditional Rules |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set container-type. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
container-type: initial;
}
.inherit-example {
container-type: inherit;
}
@supports (container-type: initial) {
.supported {
container-type: initial;
}
}