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