corner-end-start-shape
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Thecorner-end-start-shape
CSS property specifies the shape of a box's block-end and inline-start corner, within itsborder-radius
area.
For a full description of corner shape behavior and multiple examples, see thecorner-shape
shorthand property page.
In this article
Syntax
/* Keyword values */corner-end-start-shape: round;corner-end-start-shape: scoop;/* superellipse() function values */corner-end-start-shape: superellipse(0.2);corner-end-start-shape: superellipse(-5);/* Global values */corner-end-start-shape: inherit;corner-end-start-shape: initial;corner-end-start-shape: revert;corner-end-start-shape: revert-layer;corner-end-start-shape: unset;
Values
Thecorner-end-start-shape
property is specified using a<corner-shape-value>
value.
Formal definition
Value not found in DB!Formal syntax
corner-end-start-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 thecorner-shape
reference page.
Basiccorner-end-start-shape
usage
HTML
The markup for this example contains a single<div>
element.
<div></div>
CSS
We give the box some basic styles, which we've hidden for brevity. We also apply abox-shadow
, aborder-radius
of60px / 20%
, and acorner-end-start-shape
ofbevel
.
body { font-family: Arial, Helvetica, sans-serif; width: 240px; margin: 20px auto;}div { width: 100%; height: 180px; display: flex; justify-content: center; align-items: center; background-color: orange; background-image: linear-gradient( to bottom, rgb(255 255 255 / 0), rgb(255 255 255 / 0.5) );}
div { box-shadow: 1px 1px 3px gray; border-radius: 60px / 20%; corner-end-start-shape: bevel;}
Result
The rendered result looks like this:
Specifications
Specification |
---|
CSS Borders and Box Decorations Module Level 4> # propdef-corner-end-start-shape> |
Browser compatibility
Loading…
See also
corner-shape
shorthand propertycorner-start-start-shape
,corner-start-end-shape
, andcorner-end-end-shape
corner-top-left-shape
,corner-top-right-shape
,corner-bottom-left-shape
, andcorner-bottom-right-shape
border-radius
shorthand propertyborder-end-start-radius
- CSS borders and box decorations module
- CSS backgrounds and borders module