property
Corner top shape — CSS reference
Sets two corner curves along the physical top edge. Supply one value to repeat it or two in left then right order. The example cuts the first corner diagonally and scoops the second inward; the other two retain ordinary rounding. 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-top-shape: bevel scoop;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>corner-top-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-top-shape:bevel scoop}</style><body><div id="a" role="img" aria-label="Red box with shaped corners"></div></body></html>