corner-block-start-shape CSS propertyExperimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The corner-block-start-shape CSS property specifies the shape of both the corners on a box's block-start 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-block-start-shape property is a shorthand for the following logical properties:
/* Single keyword value set for both corners */
corner-block-start-shape: notch;
corner-block-start-shape: squircle;
/* Single superellipse() value set for both corners */
corner-block-start-shape: superellipse(2.7);
corner-block-start-shape: superellipse(-2.5);
/* Block-start/inline-start corner, block-start/inline-end corner */
corner-block-start-shape: notch squircle;
corner-block-start-shape: notch superellipse(-2.5);
/* Global values */
corner-block-start-shape: inherit;
corner-block-start-shape: initial;
corner-block-start-shape: revert;
corner-block-start-shape: revert-layer;
corner-block-start-shape: unset;The corner-block-start-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-block-start-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-block-start-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 40px 60px, and a corner-block-start-shape of scoop notch.
div {
box-shadow: 1px 1px 3px gray;
border-radius: 40px 60px;
corner-block-start-shape: scoop notch;
}The rendered result looks like this:
corner-shape shorthand propertycorner-block-end-shape, corner-inline-start-shape, and corner-inline-end-shapecorner-top-shape, corner-bottom-shape, corner-left-shape, and corner-right-shapeborder-radius shorthand propertyborder-start-start-radius and border-start-end-radius