corner-shape

A master shorthand property that allows you to set the shape of all four corners of an element. This is the cornerstone of the new 'CSS Borders 4' features for advanced corner styling.

It is documented as part of the CSS Backgrounds and Borders specification. This is an experimental technology. The syntax and behavior are still subject to change.

/* Usage Example */
.fancy-box {
  /* Experimental: sets shapes for all 4 corners */
  /* top-left, top-right, bottom-right, bottom-left */
  corner-shape: angle round angle round;
}

/* Global values */
corner-shape: inherit;
corner-shape: initial;
corner-shape: revert;
corner-shape: revert-layer;
corner-shape: unset;

This comparison shows how corner-shape works in a real project. View snippet →

Limited availability Since 2020 67% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

139+
139+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC