corner-top-left-shape

The corner-top-left-shape CSS property specifies the shape of a box's top-left 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-left-shape: notch;
corner-top-left-shape: squircle;

/* superellipse() function values */
corner-top-left-shape: superellipse(3);
corner-top-left-shape: superellipse(-1.5);

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

Values

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

Formal definition

Value not found in DB!

Formal syntax

corner-top-left-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-left-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 25% 100px, and a corner-top-left-shape of scoop.

css
div {
  box-shadow: 1px 1px 3px gray;
  border-radius: 25% 100px;
  corner-top-left-shape: scoop;
}

Result

The rendered result looks like this:

Specifications

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

Browser compatibility

See also