border-radius Can't Draw the iOS Look: corner-shape Squircles

October 10, 2026  |  9 min read  |  CSS

By Syed · Frontend Engineer & Creator of UITweak

Your cards look almost like iOS, but not quite. You push border-radius to 24px, then 32px, and the corners only get rounder, never smoother. They read as cheap: a straight edge, then a sudden curve bolted on at the corner. Apple's continuous corners do the opposite. The bend starts before the corner and settles in gradually, and the eye reads that as expensive. CSS finally has a property for it: CSS corner-shape, and the corner-shape: squircle keyword draws the iOS look in one declaration. This guide gives you the recipe, the per-corner variants, the superellipse tuning dial, and, critically, a fallback story for Safari and Firefox that is real, not "just wait".

30-second version: border-radius draws circular arcs, so curvature jumps from zero on the edge to 1/r at the arc, and the corner looks bolted on. corner-shape: squircle redraws the corner as a superellipse with continuous curvature, which is the iOS look. Rule one: border-radius must be non-zero or the property does nothing. Chromium 139+ supports it; Safari and Firefox do not yet, so wrap it in @supports (corner-shape: squircle) with a tuned border-radius baseline, and use a clip-path: path() fallback only where you need pixel-identical corners.

Why border-radius Looks Cheap at Large Radii

A border-radius corner is a circular arc, and that is the whole problem. On the straight edge the curvature is zero. At the exact point where the arc begins, the curvature jumps to 1/r. The tangents line up, so nothing looks broken, but the curvature is discontinuous. Geometry people call this a G2 discontinuity. Your eye does not know the name, but it sees the join: the corner visibly starts where the arc begins, and the card reads as a rectangle with curves glued on.

The discontinuity is invisible at small radii, which is why nobody notices it on 6px buttons. It becomes obvious past about 16px, and it is the reason your 28px cards never look like the mockups. This is also exactly the gap designers hit in Figma: the "corner smoothing" slider produces a squircle with continuous curvature, and the developer who implements it with plain border-radius ships something close but visibly less refined.

A squircle fixes the join. The superellipse curve grows its curvature smoothly from the corner outward, so there is no single point where the bend "starts". The result is the calm, polished corner behind the whole iOS aesthetic, from app icons to the glass surfaces in our glassmorphism guide. Until recently you needed SVG paths or a JS library to draw one. Now the platform has the curve built in.

Meet corner-shape: One Property, Six Shapes

corner-shape comes from CSS Borders and Box Decorations Module Level 4. It does not replace border-radius; it reshapes the curve inside the corner box that border-radius defines. Think of border-radius as setting the corner size and corner-shape as setting the corner curve. Everything that already follows border-radius, borders, outlines, backgrounds, and box shadows, follows the new shape automatically.

The six keywords, each mapping to a superellipse() value:

  • round: superellipse(1), the default. Same as border-radius alone.
  • squircle: superellipse(2), the iOS-style smooth corner.
  • square: superellipse(infinity), sharp, removes rounding entirely.
  • bevel: superellipse(0), a straight diagonal cut.
  • scoop: superellipse(-1), a concave inward curve.
  • notch: superellipse(-infinity), a sharp inward cut.

Negative values curve inward, values between 1 and 2 (like superellipse(1.4)) land between a circle and a squircle, and larger values grow progressively squarer. That single superellipse(n) dial is the tuning knob for the rest of this guide.

The CSS corner-shape Squircle Recipe

The basic recipe is two declarations. The radius needs to be generous: a squircle needs room to spread its bend, so start at 24px or more for cards.

.card {
  border-radius: 32px;        /* corner SIZE: required, must be non-zero */
  corner-shape: squircle;    /* corner CURVE: superellipse(2), the iOS look */
}

Per-corner shapes use the same clockwise order as border-radius: top-left, top-right, bottom-right, bottom-left. There are also longhands like corner-top-left-shape when you only need to change one corner.

.promo-card {
  border-radius: 32px 32px 8px 8px;
  corner-shape: squircle squircle round round;
  /* top corners: iOS squircle, bottom corners: plain round */
}

.one-off {
  border-radius: 20px;
  corner-top-left-shape: scoop;   /* longhand for a single corner */
}

Tuning the curve is where it gets fun. The keyword squircle is superellipse(2), but the dial is continuous:

.subtle {
  border-radius: 28px;
  corner-shape: superellipse(1.4);  /* just past round, barely-there smoothness */
}

.punchy {
  border-radius: 28px;
  corner-shape: superellipse(3);   /* squarer sides, tighter turn at the corner */
}

.ticket {
  border-radius: 20px;
  corner-shape: notch notch round round;  /* stub with punched top corners */
}

One honest note on fidelity: corner-shape: squircle is superellipse(2), which is close to but not mathematically identical to Apple's continuous corner (Apple's version also spreads the bend onto the straight edges, the model Figma's smoothing slider uses). At UI sizes the difference is academic. If your eye is that sharp, nudge the dial to superellipse(1.6) or superellipse(2.4) until it matches your mockup.

The Gotcha: corner-shape Does Nothing Without border-radius

This trips up everyone the first time. corner-shape modifies the path that border-radius defines, so with no radius (or a radius of zero) the property has no effect at all. If you add corner-shape: squircle to an element and nothing changes, check the computed border-radius first. Tailwind users: rounded-3xl sets the radius, so pair it with an arbitrary property like [corner-shape:squircle], or the property sits on a zero radius and silently does nothing.

The second half of the gotcha: the radius and the shape interact visually. A border-radius: 24px squircle looks like a smaller corner than a border-radius: 24px circular arc, because the superellipse pulls the curve inward. When you enhance a design with corner-shape, you almost always bump the radius up (24px round reads like roughly 32px squircle). Build that recalibration into your @supports block, which is the next section.

CSS corner-shape Browser Support: Chromium 139 Today, Safari and Firefox Later

Here is the honest, verified picture as of October 2026:

  • Chrome / Edge: supported since version 139 (August 2025), no flag needed. Android and WebView included.
  • Safari: not in any stable release. WebKit's official standards position is "support", and the implementation exists behind an experimental preview flag in Safari Technology Preview, but it is not shipping yet.
  • Firefox: not in any stable release. Implementation has landed behind the layout.css.corner-shape.enabled preference in Nightly (enabled by default in Nightly 158), with follow-up work on borders and shadows still open.

So corner-shape is Chromium-only in production today, reaching roughly two-thirds of users globally, and it is not yet Baseline. It is proposed for Interop 2026, which is a good sign for cross-browser movement, but you cannot ship it naked. You need a fallback story, and "wait for Safari" is not a story.

A Real Fallback Story for Safari and Firefox

Two tiers, in order of preference. Tier 1 is enough for almost everything. Tier 2 is for the cases where the corner shape is the brand.

Tier 1: Graceful degradation with @supports

Write the border-radius baseline every browser understands, then enhance inside @supports (corner-shape: squircle). The key detail from the previous section: recalibrate the radius inside the block, because the same number reads smaller as a squircle.

.card {
  border-radius: 24px;             /* every browser: clean circular corners */
  background: #fff;
}

@supports (corner-shape: squircle) {
  .card {
    border-radius: 32px;          /* recalibrated: same visual weight */
    corner-shape: squircle;       /* Chromium 139+: the iOS look */
  }
}

Safari and Firefox users see a normal rounded card. Nothing breaks, nothing looks wrong, and the day those browsers ship support, the enhancement applies itself with zero code changes on your side. For cards, buttons, modals, and inputs, this is the whole story. Ship this and move on.

Tier 2: Pixel-identical corners with clip-path

If the squircle is the design, an app icon, a logo tile, a hero badge, Tier 1's graceful fallback may not be enough. The exact fallback is clip-path: path() with a generated squircle path. clip-path: path() works in every evergreen browser (Chrome, Safari 15+, Firefox), so it covers exactly the browsers corner-shape misses.

The path has to match the element's pixel size, so generate it in JavaScript and keep it in sync with a ResizeObserver. The generator below samples the superellipse curve directly: corner-shape: squircle is superellipse(2), the curve |x|^4 + |y|^4 = 1, drawn corner by corner. It only runs where the native property is missing, detected with CSS.supports.

// One corner of a superellipse (|x|^(2k) + |y|^(2k) = 1)
// sampled inside an r x r corner box. k = 2 matches
// corner-shape: squircle.
function squirclePath(width, height, r, k = 2) {
  const N = 2 * k;
  const f = (t) => Math.sign(t) * Math.abs(t) ** (2 / N);
  const corners = [
    { cx: r, cy: r, from: Math.PI, to: 1.5 * Math.PI },          // top-left
    { cx: width - r, cy: r, from: 1.5 * Math.PI, to: 2 * Math.PI }, // top-right
    { cx: width - r, cy: height - r, from: 0, to: 0.5 * Math.PI },   // bottom-right
    { cx: r, cy: height - r, from: 0.5 * Math.PI, to: Math.PI },     // bottom-left
  ];
  const SEG = 24;
  let d = "";
  corners.forEach(({ cx, cy, from, to }, ci) => {
    for (let i = 0; i <= SEG; i++) {
      const t = from + ((to - from) * i) / SEG;
      const x = (cx + r * f(Math.cos(t))).toFixed(2);
      const y = (cy + r * f(Math.sin(t))).toFixed(2);
      d += (ci === 0 && i === 0 ? "M" : "L") + x + " " + y;
    }
  });
  return d + "Z";
}

function applySquircleFallback(el, radius = 32) {
  // Native support? Nothing to do.
  if (CSS.supports("corner-shape: squircle")) return;
  const draw = () => {
    const { width, height } = el.getBoundingClientRect();
    const r = Math.min(radius, width / 2, height / 2);
    el.style.clipPath = 'path("' + squirclePath(width, height, r) + '")';
  };
  draw();
  new ResizeObserver(draw).observe(el);
}

// usage: apply to fixed-size brand elements only
document.querySelectorAll(".needs-exact-squircle")
  .forEach((el) => applySquircleFallback(el, 32));

Three caveats you must know before reaching for Tier 2:

  • clip-path cuts box-shadow and outline. A clipped element's own shadow is clipped with it. Put the shadow on a parent wrapper instead (see the next section), and do not use this fallback on focusable elements that need a visible outline.
  • Pixel paths do not respond to layout. That is why the ResizeObserver is there. For fluid, responsive components, Tier 1 is the correct call, not this.
  • It is a fallback, not the default. The CSS.supports guard means Chromium users get the native, GPU-friendly property and everyone else gets the path. Never run the JS where the platform already does it.

Finishing the Look: Shadows That Follow the Squircle

The corner is only half the iOS look. The other half is the shadow: soft, layered, and lifted, never a single flat gray blur. With native corner-shape, box-shadow follows the squircle path automatically. With the Tier 2 clip-path fallback, the shadow has to live on a wrapper, and that is where filter: drop-shadow() earns its keep: it follows the clipped silhouette instead of the box.

<div class="card-wrap">
  <div class="card needs-exact-squircle">...</div>
</div>
.card {
  border-radius: 24px;
  background: #fff;
}
@supports (corner-shape: squircle) {
  .card {
    border-radius: 32px;
    corner-shape: squircle;
    /* native path: box-shadow follows the squircle */
    box-shadow:
      0 1px 2px rgb(15 23 42 / 0.06),
      0 12px 32px -8px rgb(15 23 42 / 0.18);
  }
}
/* clip-path fallback path: shadow moves to the wrapper */
@supports not (corner-shape: squircle) {
  .card-wrap {
    filter: drop-shadow(0 1px 2px rgb(15 23 42 / 0.08))
            drop-shadow(0 16px 32px rgb(15 23 42 / 0.16));
  }
}

Dialing in those layered values by hand is slow trial and error, so this is the step where uitweak's shadow studio pays for itself: stack the layers visually, preview them against your card, and paste the result into the @supports block above. The layering principles behind those soft iOS-style shadows are covered in our layered box shadow guide, and the drop-shadow vs box-shadow distinction matters here, covered in our box-shadow vs drop-shadow guide.

Decision Tree + Recap

  1. Cards look "almost iOS" but corners read as bolted on? That is the G2 curvature discontinuity of border-radius's circular arcs. The fix is a continuous-curvature corner: corner-shape: squircle.
  2. Basic recipe: border-radius (non-zero, generous) plus corner-shape: squircle. Tune with superellipse(1.4) to superellipse(3).
  3. Property does nothing? border-radius is missing or zero. The property modifies the radius path; without it there is nothing to modify.
  4. Need it in production today? Chromium 139+ has it; Safari and Firefox do not. Ship Tier 1: a border-radius baseline plus an @supports block with a recalibrated (larger) radius.
  5. Corner shape is the brand (icons, badges)? Add Tier 2: the clip-path: path() generator guarded by CSS.supports, with shadows moved to a wrapper via drop-shadow().
  6. Remember the six keywords: round, squircle, square, bevel, scoop, notch, and that per-corner order is TL, TR, BR, BL like border-radius.

Related: once the corners are continuous, keep the rest of the iOS aesthetic honest: our glassmorphism guide pairs the same squircle surfaces with frosted glass, and the layered box shadow guide builds the soft lifted shadows that sell the look.

Frequently Asked Questions

Can I use corner-shape without border-radius?

No. corner-shape reshapes the corner path that border-radius defines, so a zero or missing radius means the property has nothing to work on. Always set a non-zero border-radius first, then the shape.

Do borders and shadows follow the squircle automatically?

With native corner-shape, yes: borders, outlines, backgrounds, and box shadows all follow the shaped path. That is one of its advantages over SVG or clip-path approximations, where shadows get clipped and need the wrapper trick shown above.

Is corner-shape: squircle exactly the same as Apple's corner?

Close, not identical. The squircle keyword is superellipse(2); Apple's continuous corner also spreads the bend onto the straight edges, the model behind Figma's corner smoothing slider. At normal UI sizes the difference is negligible, and superellipse(1.4) through superellipse(3) covers the range your eye cares about.

Which browsers support CSS corner-shape?

Chrome and Edge 139+ (August 2025) ship it with no flag. Safari has no stable support (experimental flag in Safari Technology Preview only), and Firefox has it behind the layout.css.corner-shape.enabled Nightly preference, not in any stable release. Use @supports (corner-shape: squircle) as progressive enhancement until both ship it.

Share this guide