CSS clip-rule Property Reference
The CSS clip-rule property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
clip-rule overview
The CSS clip-rule property is a standard property in CSS Masking. Review its formal syntax, computed behavior, and practical declarations.
The computed value normally inherits from the parent element when no declaration wins the cascade.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | nonzero | evenodd |
| Initial value | nonzero |
| Applies to | limitedSVGElementsGraphics |
| Inherited | Yes |
| Percentages | no |
| Computed value | asSpecified |
| Animation type | discrete |
| Media | visual |
| Specification group | CSS Masking |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set clip-rule. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
clip-rule: initial;
}
.inherit-example {
clip-rule: inherit;
}
@supports (clip-rule: initial) {
.supported {
clip-rule: initial;
}
}