CSS corner-shape: Bevelled and Shaped Corners Without SVG or clip-pathNote · digest for December 3
Bauhaus-style geometric block builder: tiles with classic rounding, straight bevels, concave scoops, and soft squircles casting clean matching shadows.
Note3 sections≈ 6 min

CSS corner-shape: Bevelled and Shaped Corners Without SVG or clip-path

CSS had a weird imbalance for years. Rounding a corner along a circular arc took one line of border-radius, and the browser bent borders, shadows, and focus rings around it automatically. Slicing that same corner in a straight diagonal line was a chore. Curved arcs were free, while a simple bevel needed hacks. The new corner-shape property from CSS Borders and Box Decorations Level 4 fixes that.

Why clip-path broke borders and shadows

Previously, bevelled buttons, notched tickets, and squircle icons relied on clip-path: polygon(...) or SVG masks. That worked until you added a shadow. clip-path clips after painting, slicing border, outline, and box-shadow right off along the cut. Getting a shadow meant wrapping an extra <div> with filter: drop-shadow(), and borders meant duplicating pseudo-elements.

corner-shape changes the actual border box geometry. The browser draws bevelled or concave corners directly, so backgrounds, border, outline (with outline-offset), box-shadow, overflow, and backdrop-filter all follow the shape natively:

.card {
  /* Corner area size and bevel shape */
  border-radius: 24px;
  corner-shape: bevel;
  /* Border, outline, and shadow follow the diagonal automatically */
  border: 2px solid #ff6347;
  outline: 4px solid #ffffff;
  box-shadow: 0 8px 16px hsl(0deg 0% 0% / 0.25);
}

No extra wrappers and no percentage coordinate math. Even if a button stretches for longer text, the bevel stays exactly 24px.

How corner-shape pairs with border-radius

Before, border-radius did two jobs: measuring the corner region and forcing a circular curve. Now those jobs are split. border-radius carves out the corner box (capped at half the element's width or height), and corner-shape picks the curve inside it. That gives one simple rule: if border-radius is zero, the corner box is empty and corner-shape draws nothing.

Under the hood, all six shapes map onto a superellipse(K) curve. K controls curvature on one continuous scale: round is 1, an iOS-style squircle is 2, and a sharp square approaches infinity. Zero gives a straight bevel, while negative values curve inward—concave scoop (-1) and 90° notch (-infinity). Because they share one axis, you can smoothly animate between shapes with transition. It accepts one to four clockwise values, plus physical (corner-top-left-shape) and logical (corner-start-start-shape) per-corner properties.

Live playground: corner-shape and border-radius

Drag the slider to zero and every shape disappears. You can also use slash syntax like border-radius: 32px / 16px to set different horizontal and vertical radii—paired with bevel, that creates custom-angled cuts instead of just 45°.

Keep three practical quirks in mind. With multi-colored borders, joins meet halfway along the diagonal, and Chrome versions prior to 159 (due December 8, 2026) had an overlap bug on adjacent colored borders. If you fake extra edges with a negative outline-offset, don't put it on <button> or <a>—you'll clobber keyboard focus rings; use a wrapper <div> instead. Third, corner-shape doesn't work alongside experimental border-shape, which disables border-radius.

Browser support and safe fallbacks

According to Can I use (StatCounter, October 2026), corner-shape works in Chromium—Chrome 139+, Edge 139+, Opera 123+, Samsung Internet 30+, and Chrome for Android 158+—covering 72.56% of global traffic. It isn't Baseline yet: stable Firefox and Safari lack it, though it's already in Firefox 162 Nightly and Safari 27.3 beta.

You don't need to wait for 100% coverage. Browsers without support ignore corner-shape and render normal border-radius—built-in progressive enhancement. If a bevel needs a larger radius than a rounded corner, split them with @supports:

/* Older browsers keep standard rounded corners */
.action-btn {
  border-radius: 12px;
  corner-shape: bevel;
}

/* Bump the radius only where bevels are supported */
@supports (corner-shape: bevel) {
  .action-btn {
    border-radius: 18px;
  }
}

No polyfills, no broken layouts, and no sharp corners left in Safari or Firefox. Once other engines ship it, bevels turn on automatically.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 5