function
Superellipse() — CSS reference
Specifies a corner curve by its curvature parameter. Zero makes a diagonal bevel, one a round curve, two a squircle and negative one a scoop. The limiting positive and negative infinity values correspond to square and notch. The radius defines the corner region; the number does not specify a length. Use a conventional radius as a fallback; it does not reproduce all curves.
Formal Syntax & Structure
css syntaxcss
corner-shape: superellipse(2);Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>superellipse()</title><style>body{margin:0;background:white}#a{width:100px;height:100px;background:rgb(255,0,0);border-radius:30px;box-sizing:border-box}#a{corner-shape:superellipse(2)}</style><body><div id="a" role="img" aria-label="Red squircle-corner box"></div></body></html>