CSS all Property Reference
The CSS all property is a standard property in CSS Cascading and Inheritance. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
all overview
The CSS all property is a standard property in CSS Cascading and Inheritance. 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 | initial | inherit | unset | revert | revert-layer |
| Initial value | noPracticalInitialValue |
| Applies to | allElements |
| Inherited | No |
| Percentages | no |
| Computed value | asSpecifiedAppliesToEachProperty |
| Animation type | eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection |
| Media | noPracticalMedia |
| Specification group | CSS Cascading and Inheritance |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set all. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
all: initial;
}
.inherit-example {
all: inherit;
}
@supports (all: initial) {
.supported {
all: initial;
}
}