Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

border-start-end-radius — logical corner radius

The border-start-end-radius property rounds the corner where the block-start and inline-end sides meet. The physical corner it selects depends on the element’s writing mode and direction.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

border-start-end-radius: <length-percentage [0,∞]>{1,2};

border-start-end-radius selects the corner where block-start meets inline-end. The first directional component refers to the block axis; the second refers to the inline axis. Mapping depends on writing-mode, direction, and text-orientation. With writing-mode: horizontal-tb, it selects the top-right corner for direction: ltr and the top-left corner for direction: rtl.

Supply one or two nonnegative <length-percentage> values, without a slash. One sets both radii; two set the horizontal and vertical radii, respectively, regardless of writing mode. Percentages refer to the border box’s width and height, respectively. The initial value is 0, and the property is not inherited.

In the example, 24px 12px creates an elliptical rounding that switches sides when direction changes. Physical properties such as border-top-right-radius do not switch corners this way. Avoid accidentally overriding the declaration with a later border-radius.

Examples

<!doctype html>
<meta charset="utf-8">
<title>border-start-end-radius</title>
<style>
  .box {
    writing-mode: horizontal-tb;
    width: 120px;
    height: 80px;
    margin: 12px;
    background: teal;
    border-start-end-radius: 24px 12px;
  }
  .ltr { direction: ltr; }
  .rtl { direction: rtl; }
</style>
<div class="box ltr"></div>
<div class="box rtl"></div>

Result

Two teal rectangles: the first has an elliptical top-right corner, and the second an elliptical top-left corner. Each rounded corner has a horizontal radius of 24px and a vertical radius of 12px; all other corners are square.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources