CSS corner-shape Property
Description
The corner-shape property controls the geometric treatment of an element’s corners beyond simple radii, letting authors define whether a corner is rounded, chamfered, notched, inset, bulging or follows a more complex custom curve. Rather than only affecting the visible curve of a border, it influences the element’s outline used for painting, hit-testing, and clipping—so it can change where background and foreground content appear near the corner, whether overflow is masked, and how the element responds to pointer events at its edges. Designers use it to produce distinct visual language for components (soft rounded cards, sharp angular controls, or decorative notches) while keeping the rest of the box model intact.
In practice corner-shape is commonly used alongside other corner- and clipping-related properties. For smoothing or rounding effects that were traditionally handled with border-radius, corner-shape provides finer control over multiple corner segments and asymmetric treatments. When you need to precisely clip the rendering region—so backgrounds, images or shadows are strictly confined—you often combine it with clip-path to create non-rectangular silhouettes or with shape-outside to influence float wrapping around a shaped box. Visual extras such as soft shadows should be considered together with box-shadow, since a corner’s geometry affects the shadow’s casting and visual continuity.
Beyond the visual result, corner-shape affects usability and performance trade-offs. Complex corner geometries may change an element’s hit area, so authors should ensure interactive targets remain large enough for accessibility and that focus outlines remain visible and legible. Animating corner geometry can produce engaging micro-interactions, but elaborate or frequently-updated custom curves may force repaints or compositing and thus require performance testing on target devices. It also has sensible fallback behavior: if a particular corner treatment isn’t supported by a user agent, it should degrade to a simpler geometric alternative so content remains usable and predictable.
Definition
- Initial value
- round
- Applies to
- all elements where border-radius can apply
- Inherited
- no
- Computed value
- n/a
- Animatable
- yes
- JavaScript syntax
- object.style.cornerShape
Syntax
corner-shape: <corner-shape>{1,4}
Values
The property accepts one to four <corner-shape-value> values. These define the style of the corner shape:
Keyword Values
round— The default value. Creates a standard rounded corner (equivalent to traditional border-radius).scoop— Creates an inward-facing curve (concave), making the corner look "bitten" out.bevel— Creates a flat, diagonal cut across the corner (chamfered look).notch— Creates a rectangular step-like cutout at the corner.square— Straight angle corner (no rounding)squircle— Intermediate shape between round and square
Functional Value
superellipse(<number>)— Determines corner curvature using a superellipse curve.- Larger positive numbers → closer to a square
- Values around 1 → default/round
- Negative values → inverted/concave shapes
infinityand-infinityare allowed as extremes ([MDN Web Docs][1])
Global CSS Values
inheritinitialrevertrevert-layerunset
Example
Browser Support
The following information will show you the current browser support for the CSS corner-shape property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported in some modern browsers, but not all.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 29th December 2025
