CSS corner-top-right-shape Property
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
infinityand-infinityare allowed as extremes ([MDN Web Docs][1])
Global CSS Values
inheritinitialrevertrevert-layerunset
Example
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
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
