大网数据广告活动
Web 标准与前端开发

`corner-block-start-shape` CSS property

· 52CE 我爱测

The **`corner-block-start-shape`** CSS property specifies the shape of both the corners on a box's block-start edge, within their border-radius area.

The corner-block-start-shape CSS property specifies the shape of both the corners on a box's block-start edge, within their border-radius area.

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

Constituent properties

This property is a shorthand for the following logical properties:

  • corner-start-start-shape
  • corner-start-end-shape

Syntax

/* Single keyword value set for both corners */
corner-block-start-shape: notch;
corner-block-start-shape: squircle;

/* Single superellipse() value set for both corners */
corner-block-start-shape: superellipse(2.7);
corner-block-start-shape: superellipse(-2.5);

/* Block-start/inline-start corner, block-start/inline-end corner */
corner-block-start-shape: notch squircle;
corner-block-start-shape: notch superellipse(-2.5);

/* Global values */
corner-block-start-shape: inherit;
corner-block-start-shape: initial;
corner-block-start-shape: revert;
corner-block-start-shape: revert-layer;
corner-block-start-shape: unset;

Values

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

  • If one value is used, it specifies the shape of both block-start corners.
  • If two values are used, the first one specifies the shape of the block-start/inline-start corner, and the second one specifies the shape of the block-start/inline-end corner.

Formal definition

Formal syntax

Examples

You can find other related examples on the corner-shape reference page.

Basic corner-block-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 a box-shadow, a border-radius of 40px 60px, and a corner-block-start-shape of scoop notch.

body {
  font-family: "Helvetica", "Arial", sans-serif;
  width: 240px;
  margin: 20px auto;
}

div {
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: goldenrod;
  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: 40px 60px;
  corner-block-start-shape: scoop notch;
}

Result

The rendered result looks like this:

basic-usage

Specifications

Browser compatibility

See also

  • corner-shape shorthand property
  • corner-block-end-shape, corner-inline-start-shape, and corner-inline-end-shape
  • corner-top-shape, corner-bottom-shape, corner-left-shape, and corner-right-shape
  • border-radius shorthand property
  • border-start-start-radius and border-start-end-radius
  • CSS borders and box decorations module
  • CSS backgrounds and borders module

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。