CSS Portal

CSS corner-top-right-shape Property

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
corner-top-right-shape
CSS PropertyThis property is supported in some modern browsers, but not all.
Updated 1st January 2026

Description

The corner-top-right-shape property controls the geometric outline applied specifically to the top‑right corner of a box, letting authors alter that single corner independently from the others. Rather than being limited to a simple radius, it can express a variety of corner treatments - from gentle rounding to sharp chamfers, inward notches, or more complex fitted curves - that change how the box’s edge is painted and how content is visually framed. Because it targets one corner only, it’s especially useful when you want asymmetry or a distinctive accent on a single edge without altering the rest of the element’s border geometry.

In painting and layout terms, the property determines the clip and bevel applied to that corner, so it affects where borders and backgrounds are drawn and how overflow is handled at that corner. It is designed to interoperate with general corner shaping mechanisms such as border-radius and with explicit outline/clipping primitives like clip-path, allowing authors to combine precise corner shaping with broader shape masking or complex element silhouettes. Where both this corner-specific shape and a more global corner rule exist, implementations resolve them in a predictable composition order so authors can layer effects (for example, applying a subtle global rounding with a pronounced top-right notch).

From a practical perspective, the property is a tool for visual refinement and interaction design: it can improve legibility by shaping how text and images sit near a corner, create affordances for clickable controls, and add distinctive branding flourishes to cards, badges, and containers. It is amenable to transitions and motion - animating the corner shape can provide subtle micro‑interactions - and should be considered alongside painting properties and shadowing to preserve optical balance. When authoring, consider how the corner’s geometry interacts with content overflow, hit-testing, and any masks or compositing that affect the element so the visual intention matches the element’s interactive behavior.

Definition

Initial value
round
Applies to
all elements where border-radius can apply
Inherited
no
Computed value
n/a
Animatable
yes
JavaScript syntax
object.style.cornerTopRightShape

Syntax

corner-top-right-shape: <corner-shape>

Values

The property accepts one <corner-shape-value> value. These define the style of the corner shape:

Keyword Values
  • round - The default value. Creates a standard rounded corner (equivalent to traditional border-radius).
  • scoop - Creates an inward-facing curve (concave), making the corner look "bitten" out.
  • bevel - Creates a flat, diagonal cut across the corner (chamfered look).
  • notch - Creates a rectangular step-like cutout at the corner.
  • square - Straight angle corner (no rounding)
  • squircle - Intermediate shape between round and square
Functional Value
  • superellipse(<number>) - Determines corner curvature using a superellipse curve.

    • Larger positive numbers → closer to a square
    • Values around 1 → default/round
    • Negative values → inverted/concave shapes
    • infinity and -infinity are allowed as extremes ([MDN Web Docs][1])
Global CSS Values
  • inherit
  • initial
  • revert
  • revert-layer
  • unset

Example

<div class="wrap">
<div class="card">
<h1>Corner Shape</h1>
<p>This card demonstrates a decorative top-right corner shape controlled by a CSS property.</p>
</div>
</div>
:root {
  /* size of the decorative top-right corner */
  --card-bg: linear-gradient(135deg, #6dd5fa 0%, #2980b9 100%);
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #f3f6f9;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px;
}

.wrap {
  width: 360px;
}

.card {
  position: relative;
  padding: 24px;
  background: var(--card-bg);
  color: #fff;
  border-radius: 30px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(16,24,40,0.08);
  corner-top-right-shape: bevel;
}

.card h1 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.card p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}
Open in editor

Browser Support

The following information will show you the current browser support for the CSS corner-top-right-shape property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee