corner-top-right-shape

The corner-top-right-shape CSS property specifies the shape of a box's top-right corner, within its border-radius area.

For a full description of corner shape behavior and multiple examples, see the corner-shape shorthand property page.

Syntax

css
/* Keyword values */
corner-top-right-shape: scoop;
corner-top-right-shape: square;

/* superellipse() function values */
corner-top-right-shape: superellipse(2.2);
corner-top-right-shape: superellipse(-2.5);

/* Global values */
corner-top-right-shape: inherit;
corner-top-right-shape: initial;
corner-top-right-shape: revert;
corner-top-right-shape: revert-layer;
corner-top-right-shape: unset;

Values

The corner-top-right-shape property is specified using a <corner-shape-value> value.

Formal definition

Value not found in DB!

Formal syntax

corner-top-right-shape = 
<corner-shape-value>

<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-right-shape usage

HTML

The markup for this example contains a single <div> element.

html
<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-right-shape of bevel.

css
div {
  box-shadow: 1px 1px 3px gray;
  border-radius: 60px;
  corner-top-right-shape: bevel;
}

Result

The rendered result looks like this:

Specifications

Specification
CSS Borders and Box Decorations Module Level 4
# propdef-corner-top-right-shape

Browser compatibility

See also