corner-left-shape CSS propertyExperimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The corner-left-shape CSS property specifies the shape of both the corners on a box's left-hand edge, within their border-radius area.
For a full description of corner shape behavior and multiple examples, see the corner-shape shorthand property page.
The corner-left-shape property is a shorthand for the following physical properties:
/* Single keyword value set for both corners */
corner-left-shape: round;
corner-left-shape: bevel;
/* Single superellipse() value set for both corners */
corner-left-shape: superellipse(1.2);
corner-left-shape: superellipse(-2.5);
/* Top corner, bottom corner */
corner-left-shape: round bevel;
corner-left-shape: bevel superellipse(1.2);
/* Global values */
corner-left-shape: inherit;
corner-left-shape: initial;
corner-left-shape: revert;
corner-left-shape: revert-layer;
corner-left-shape: unset;The corner-left-shape property is specified using one or two <corner-shape-value> values:
| Initial value | as each of the properties of the shorthand:
|
|---|---|
| Applies to | all elements. It also applies to ::first-letter. |
| Inherited | no |
| Computed value | as each of the properties of the shorthand:
|
| Animation type | as each of the properties of the shorthand:
|
corner-left-shape =
<'corner-top-left-shape'>{1,2}
<corner-top-left-shape> =
<corner-shape-value>
<corner-shape-value> =
round |
scoop |
bevel |
notch |
square |
squircle |
<superellipse()>
<superellipse()> =
superellipse( <number> |
infinity |
-infinity )
You can find other related examples on the corner-shape reference page.
corner-left-shape usageThe markup for this example contains a single <div> element.
<div></div>We give the box some basic styles, which we've hidden for brevity. We also apply a box-shadow, a border-radius of 20px 40px / 60px 80px, and a corner-left-shape of notch bevel.
div {
box-shadow: 1px 1px 3px gray;
border-radius: 20px 40px / 60px 80px;
corner-left-shape: notch bevel;
}The rendered result looks like this:
corner-shape shorthand propertycorner-top-shape, corner-bottom-shape, and corner-right-shapecorner-block-start-shape, corner-block-end-shape, corner-inline-start-shape, and corner-inline-end-shapeborder-radius shorthand propertyborder-top-left-radius and border-bottom-left-radius