Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. CSS
  3. corner-inline-start-shape

corner-inline-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-inline-start-shapeCSS property specifies the shape of both the corners on a box's inline-start edge, within theirborder-radius area.

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

Constituent properties

Thecorner-inline-start-shape property is a shorthand for the following physical properties:

Syntax

css
/* Single keyword value set for both corners */corner-inline-start-shape: round;corner-inline-start-shape: bevel;/* Single superellipse() value set for both corners */corner-inline-start-shape: superellipse(0.5);corner-inline-start-shape: superellipse(-3);/* Block-start/inline-start corner, block-end/inline-start corner */corner-inline-start-shape: round bevel;corner-inline-start-shape: round superellipse(0.5);/* Global values */corner-inline-start-shape: inherit;corner-inline-start-shape: initial;corner-inline-start-shape: revert;corner-inline-start-shape: revert-layer;corner-inline-start-shape: unset;

Values

Thecorner-inline-start-shape property is specified using one or two<corner-shape-value> values:

  • Ifone value is used, it specifies the shape ofboth inline-start corners.
  • Iftwo values are used, the first one specifies the shape of theblock-start/inline-start corner, and the second one specifies the shape of theblock-end/inline-start corner.

Formal definition

Value not found in DB!

Formal syntax

corner-inline-start-shape =
<'corner-top-left-shape'>{1,2}

<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 thecorner-shape reference page.

Basiccorner-inline-start-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 abox-shadow, aborder-radius of 60 pixels, and acorner-inline-start-shape ofsquare bevel.

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)  );}
css
div {  box-shadow: 1px 1px 3px gray;  border-radius: 60px;  corner-inline-start-shape: square bevel;}

Result

The rendered result looks like this:

Specifications

Specification
CSS Borders and Box Decorations Module Level 4
# propdef-corner-inline-start-shape

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp