CSS clip-path Property Reference
The CSS clip-path property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
clip-path overview
The CSS clip-path property is a standard property in CSS Masking. 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 | <clip-source> | [ <basic-shape> || <geometry-box> ] | none |
| Initial value | none |
| Applies to | allElementsSVGContainerElements |
| Inherited | No |
| Percentages | referToReferenceBoxWhenSpecifiedOtherwiseBorderBox |
| Computed value | asSpecifiedURLsAbsolute |
| Animation type | basicShapeOtherwiseNo |
| Media | visual |
| Specification group | CSS Masking |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set clip-path. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
clip-path: initial;
}
.inherit-example {
clip-path: inherit;
}
@supports (clip-path: initial) {
.supported {
clip-path: initial;
}
}