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