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.

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

container-type formal syntax
FieldValue
Formal syntaxnormal | [ [ size | inline-size ] || scroll-state ]
Initial valuenormal
Applies toallElements
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typecolor
Mediavisual
Specification groupCSS Conditional Rules
StatusStandard

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.

container-type live example
CSS .reset-example { container-type: initial; } .inherit-example { container-type: inherit; } @supports (container-type: initial) { .supported { container-type: initial; } }

Description

The CSS container-type property is a standard property in CSS Conditional Rules. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: container-type
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies