CSS Reference ยท Borders, Outlines and Shadows
The corner-shape property
Reference for the CSS corner-shape property: change what a border-radius corner looks like (bevel, scoop, notch, squircle). Limited support, with a fallback.
The corner-shape property changes the geometry of corners that have a border-radius. With plain border-radius, a corner is always a convex quarter ellipse. With corner-shape the same radius can describe a bevel (a straight diagonal cut), a scoop (a concave curve), a notch, or a "squircle" that is smoother than a circle.
The radius still sets how big the corner is; corner-shape only sets its form.
Limited support. corner-shape is a newer feature that is not available in every browser. Check a browser compatibility table before relying on it, and always design so the box still looks right with ordinary round corners. This page is intentionally short.
.badge { border-radius: 24px; corner-shape: bevel; }
Try it
Syntax
corner-shape: <corner-shape-value>{1,4}; <corner-shape-value> = round | scoop | bevel | notch | square | squircle | superellipse(<number>)
- Initial value:
round - Applies to: elements where
border-radiusapplies - Inherited: no
- Animatable: yes
- Computed value: as specified
Values
| Value | Description |
|---|---|
round |
The normal convex rounded corner. |
bevel |
A straight diagonal cut between the two ends of the radius. |
scoop |
A concave curve, as if a circle were cut out of the corner. |
notch |
A concave right-angle cut. |
square |
A sharp corner; the radius is ignored for the shape. |
squircle |
A curve between a circle and a square, with a smoother join to the sides. |
superellipse(<number>) |
A custom curve; the number controls how square or pointed the corner is. |
| One to four values | Top-left, top-right, bottom-right, bottom-left, like border-radius. |
Usage notes
- A radius is still required. With
border-radius: 0there is no corner to shape, so nothing changes. - Per-corner longhands exist (such as
corner-top-left-shape) for setting a single corner. - Fallback is automatic. Browsers without support ignore the declaration and show ordinary round corners, so it works as a progressive enhancement. Use
@supports (corner-shape: bevel)if the rest of the design depends on it. - Shadows and backgrounds follow the shaped corners in supporting browsers, as they follow
border-radius. - Not a replacement for
clip-pathwhen you need arbitrary polygons.
Browser support
Limited: it is a recent addition to CSS and is not available in all browsers. Check a browser compatibility table before using it in production, and provide border-radius as the fallback.
Related
border-radiusโ sets the corner sizeborder-top-left-radius,clip-path- Lesson: Rounded Corners
- Lesson: CSS Shapes