superellipse() CSS Function
The superellipse() function describes a corner curve for corner-shape, from a sharp notch through a bevel and round corner to a squircle.
Description
The superellipse() CSS function describes the curve used for a box's corners when combined with the corner-shape property. It gives you control over corner shapes that go beyond the circular arcs of border-radius, including the smooth "squircle" corners used in many app icons, as well as bevelled, scooped and notched corners. The size of the corner is still set with border-radius; superellipse() only changes its shape.
The argument is a number that controls the curvature. A value of 1 gives a normal round corner, the same as border-radius on its own. Values above 1 make the corner squarer and smoother; 2 is a squircle, and infinity gives a sharp square corner. 0 produces a straight diagonal bevel. Negative values curve the corner inward: -1 is a concave scoop and -infinity is a notch. The corner-shape keywords are shorthands for these values: round, squircle, square, bevel, scoop and notch.
/* App-icon style squircle */
.icon {
border-radius: 28%;
corner-shape: superellipse(2); /* same as squircle */
}
/* Ticket with scooped corners */
.ticket {
border-radius: 16px;
corner-shape: superellipse(-1); /* same as scoop */
}
/* Gentle bevel */
.tag {
border-radius: 10px;
corner-shape: superellipse(0); /* same as bevel */
}
superellipse() and corner-shape are currently supported only in Chromium-based browsers. Elsewhere, the corners fall back to ordinary rounded corners.
Interactive Demo
Syntax
superellipse() = superellipse( <number> | infinity | -infinity )
Values
- <number>The curvature of the corner. 1 is a normal round corner, values above 1 are squarer (2 is a squircle), 0 is a straight bevel, and negative values curve inward (-1 is a scoop).
- infinityA sharp square corner, the same as corner-shape: square.
- -infinityA sharp inward notch, the same as corner-shape: notch.
Example
Browser Support
The following information will show you the current browser support for the CSS superellipse() function. Hover over a browser icon to see the version that first introduced support for this CSS function.
Desktop





Tablets & Mobile





