CKTIS / CSS
corner-shape — corner shaping
corner-shape selects corner geometry within the area defined by border-radius. Without a nonzero radius, it has no visible effect.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
corner-shape: <corner-shape-value>{1,4};
<corner-shape-value> = round | scoop | bevel | notch | square | squircle | superellipse(<number> | infinity | -infinity)corner-shape is a shorthand setting the shapes of four corners. Its initial value is round; it is not inherited. It does not size corners — border-radius does.
One value covers all corners; two cover opposite pairs; three cover top-left, top-right/bottom-left, bottom-right. Four values run clockwise from top-left.
Values include round, squircle, square, bevel, scoop, notch, and superellipse(K). The keywords correspond to K values 1, 2, infinity, 0, -1, -infinity, respectively. bevel makes a straight diagonal; scoop and notch make concave cutouts.
The example requires local verification. The Chromium 152 scope gate does not replace rendering checks.
Examples
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>corner-shape on all four corners</title>
<style>
.tile {
width: 160px;
height: 100px;
background: teal;
border-radius: 24px;
corner-shape: bevel;
}
</style>
</head>
<body>
<div class="tile" role="img" aria-label="Teal tile used to test corner-shape on all four corners"></div>
<script>
if (CSS.supports('corner-shape', 'bevel')) {
console.log('corner-shape: supported');
const style = getComputedStyle(document.querySelector('.tile'));
for (const corner of ['top-left', 'top-right', 'bottom-right', 'bottom-left']) {
const computed = style.getPropertyValue(`corner-${corner}-shape`);
const shape = computed === 'superellipse(0)' ? 'bevel' : computed;
const radius = style.getPropertyValue(`border-${corner}-radius`);
console.log(`${corner}: ${shape}, radius ${radius}`);
}
} else {
console.log('corner-shape: unsupported');
}
</script>
</body>
</html>Result
corner-shape: supported top-left: bevel, radius 24px top-right: bevel, radius 24px bottom-right: bevel, radius 24px bottom-left: bevel, radius 24px
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.