CSS <corner-shape-value> Data Type
The <corner-shape-value> data type sets the shape of a rounded corner, such as round, squircle, bevel, scoop or notch, or superellipse().
Description
The <corner-shape-value> CSS data type describes the shape of a box's corner. It is used by the corner-shape property and its longhands, such as corner-top-left-shape. The size of each corner still comes from border-radius; corner-shape only changes the curve drawn within that radius, so a corner with no radius stays square whatever its shape.
Every shape is ultimately a superellipse() curve, and six keywords give names to common ones. round is the normal circular corner, equal to superellipse(1). squircle is a smooth, squarer curve used in many app icons, equal to superellipse(2). square is a sharp right angle (superellipse(infinity)), and bevel is a straight diagonal cut (superellipse(0)). scoop curves inward (superellipse(-1)), and notch cuts a sharp inward step (superellipse(-infinity)).
Borders, outlines, shadows and backgrounds all follow the corner shape. Browsers that do not support corner-shape show ordinary rounded corners from border-radius, so it is safe to use as an enhancement.
Examples:
.icon {
border-radius: 28%;
corner-shape: squircle;
}
.tag {
border-radius: 12px;
corner-shape: bevel;
}
/* Different shapes per corner */
.ticket {
border-radius: 20px;
corner-shape: scoop round;
}
Interactive Demo
Syntax
<corner-shape-value> = round | scoop | bevel | notch | square | squircle | <superellipse()>
Values
- roundA normal convex circular or elliptical corner. Equivalent to superellipse(1).
- squircleA smooth curve between round and square. Equivalent to superellipse(2).
- squareA sharp right-angled corner. Equivalent to superellipse(infinity).
- bevelA straight diagonal line across the corner. Equivalent to superellipse(0).
- scoopA concave curve that dips into the box. Equivalent to superellipse(-1).
- notchA sharp inward step. Equivalent to superellipse(-infinity).
- <superellipse()>Any curvature as a number; see superellipse().
Example
Browser Support
The following information will show you the current browser support for the CSS corner-shape-value data type. Hover over a browser icon to see the version that first introduced support for this CSS data type.
Desktop





Tablets & Mobile





