`corner-top-shape` CSS property
Baseline Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The corner-top-shape CSS property specifies the shape of both the corners on a box's top edge, within their border-radius area.
For a full description of corner shape behavior and multiple examples, see the corner-shape shorthand property page.
Constituent properties
This property is a shorthand for the following physical properties:
Syntax
/* Single keyword value set for both corners */ corner-top-shape: notch; corner-top-shape: squircle; /* Single superellipse() value set for both corners */ corner-top-shape: superellipse(3); corner-top-shape: superellipse(-1.5); /* Left-hand corner, right-hand corner */ corner-top-shape: notch squircle; corner-top-shape: notch superellipse(-1.5); /* Global values */ corner-top-shape: inherit; corner-top-shape: initial; corner-top-shape: revert; corner-top-shape: revert-layer; corner-top-shape: unset;
Values
The corner-top-shape property is specified using one or two <corner-shape-value> values:
- If one value is used, it specifies the shape of both top corners.
- If two values are used, the first one specifies the shape of the top-left corner, and the second one specifies the shape of the top-right corner.
Formal definition
| Initial value | as each of the properties of the shorthand: |
|---|---|
| Applies to | all elements |
| Inherited | no |
| Computed value | as each of the properties of the shorthand: |
| Animation type | as each of the properties of the shorthand: |
Formal syntax
corner-top-shape = <corner-shape-value>{1,2} <corner-shape-value> = round | scoop | bevel | notch | square | squircle | <superellipse()> <superellipse()> = superellipse( [ <number> | infinity | -infinity ] )
Examples
You can find other related examples on the corner-shape reference page.
Basic corner-top-shape usage
HTML
The markup for this example contains a single <div> element.
<div></div>
CSS
We give the box some basic styles, which we've hidden for brevity. We also apply a box-shadow, a border-radius of 60 pixels, and a corner-top-shape of scoop notch.
body {
font-family: "Helvetica", "Arial", sans-serif;
width: 240px;
margin: 20px auto;
}
div {
width: 100%;
height: 180px;
display: flex;
justify-content: center;
align-items: center;
background-color: goldenrod;
background-image: linear-gradient(
to bottom,
rgb(255 255 255 / 0),
rgb(255 255 255 / 0.5)
);
}
div {
box-shadow: 1px 1px 3px gray;
border-radius: 60px;
corner-top-shape: scoop notch;
}
Result
The rendered result looks like this:
Specifications
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on iOS | Samsung Internet | WebView Android | WebView on iOS | |
corner-top-shape |
139 |
139 |
No |
123 |
preview |
139 |
No |
91 |
No |
30.0 |
139 |
No |
bevel |
139 |
139 |
No |
123 |
preview |
139 |
No |
91 |
No |
30.0 |
139 |
No |
notch |
139 |
139 |
No |
123 |
preview |
139 |
No |
91 |
No |
30.0 |
139 |
No |
round |
139 |
139 |
No |
123 |
preview |
139 |
No |
91 |
No |
30.0 |
139 |
No |
scoop |
139 |
139 |
No |
123 |
preview |
139 |
No |
91 |
No |
30.0 |
139 |
No |
square |
139 |
139 |
No |
123 |
preview |
139 |
No |
91 |
No |
30.0 |
139 |
No |
squircle |
139 |
139 |
No |
123 |
preview |
139 |
No |
91 |
No |
30.0 |
139 |
No |
See also
-
corner-shapeshorthand property -
corner-bottom-shape,corner-left-shape, andcorner-right-shape -
corner-block-start-shape,corner-block-end-shape,corner-inline-start-shape, andcorner-inline-end-shape -
border-radiusshorthand property -
border-top-left-radiusandborder-top-right-radius - CSS borders and box decorations module
- CSS backgrounds and borders module
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/corner-top-shape