CKTIS / CSS
corner-top-shape — top corner shapes
A CSS shorthand that sets the shapes of both top corners independently of their size, which is controlled by border-radius.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
corner-top-shape: <'corner-top-left-shape'>{1,2};
<corner-shape-value> = round | scoop | bevel | notch | square | squircle | <superellipse()>corner-top-shape sets corner-top-left-shape and corner-top-right-shape. One value applies to both corners; two values mean left then right. These are physical directions, independent of text direction.
The shorthand changes shapes, not radii. A zero radius makes the effect invisible. Both constituent properties initially use round and are not inherited. Unlike corner-top, this shorthand does not set radii.
The definition belongs to an evolving specification. The example was verified in an isolated environment. You should still check support and rendering in the target browser.
Examples
<!doctype html>
<meta charset="utf-8">
<title>corner-top-shape</title>
<style>
.tile {
width: 200px;
height: 120px;
background: #2563eb;
border-radius: 32px 32px 0 0;
corner-top-shape: bevel round;
}
</style>
<div class="tile"></div>Result
With support: a blue tile with a beveled top-left corner, rounded top-right corner, and square bottom corners. Without support: both top corners remain rounded.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.