property

Corner shape — CSS reference

Sets all four physical corner curves in clockwise order starting at the upper left. One value repeats on all corners, two values alternate across diagonals, and three values reuse the second on the lower left. Here the upper left is cut diagonally, the upper right curves inward, the lower right is square and the lower left is a squircle. A nonzero border radius is needed to see the effect. Leave the radius declaration in place for browsers without corner shaping; the fallback is ordinary rounded corners, not an exact imitation.

Formal Syntax & Structure

css syntaxcss
corner-shape: bevel scoop square squircle;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>corner-shape</title><style>body{margin:0;background:white}#a{width:100px;height:100px;background:rgb(255,0,0);border-radius:30px;box-sizing:border-box}#a{corner-shape:bevel scoop square squircle}</style><body><div id="a" role="img" aria-label="Red box with shaped corners"></div></body></html>
CSS Reference