corner-top-shape

An experimental shorthand to set the physical shape of both top corners (top-left and top-right) at once.

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 */
.banner {
  /* Experimental: sets both top corners to be angled */
  corner-top-shape: angle;
}

/* Global values */
corner-top-shape: inherit;
corner-top-shape: initial;
corner-top-shape: revert;
corner-top-shape: revert-layer;
corner-top-shape: unset;
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