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