Corner

Compare a rounded rectangle with a superellipse-based corner and copy its path.

Superellipse K=1.75
Standard round

Closed SVG path

Shared radius describes a shape's circumradius; this corner radius is separate. K=1 is round, K=2 is squircle. This is not the Apple or Figma corner algorithm.

CSS Borders 4 progressive rule

Colored standalone SVG

The draft corner-shape property needs browser support. SVG is the portable output. The path samples the specified curve at 16 segments per corner.

What it measures

Corner compares a regular rounded square with a superellipse-based square at the same corner radius. Its corner radius is separate from the shared shape circumradius. A smoothing value of zero is round; one reaches the traditional squircle exponent.

How it is computed

The curve follows the CSS Borders Level 4 superellipse definition: x raised to 2^K plus y raised to 2^K equals one. K runs from 1 to 2. The SVG path samples each quarter curve into straight segments and closes it. The draft CSS corner-shape: superellipse(K) expresses the mathematical model with the same corner radius, but is only progressive CSS, subject to browser support.

When to use it

Use the SVG path where the curve must render consistently. Raw path data describes geometry only; the standalone SVG includes the chosen foreground. The CSS declaration is useful when supporting browsers implement corner-shape; keep a regular border-radius fallback. This model is not an exact reconstruction of Apple’s or Figma’s proprietary corner algorithm.

Form draws basic shapes. Polygon exports straight-edged clipping. Blob uses a seeded smooth path.