Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

border-end-end-radius — logical end-corner radius

The border-end-end-radius property sets the radii of the corner where the block-end and inline-end sides meet. The selected corner depends on writing direction and writing mode, so it is not always the bottom-right corner.

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

Syntax

border-end-end-radius: <length-percentage [0,∞]>{1,2};
/* CSS Borders Level 4 also defines: */
border-end-end-radius: <length-percentage [0,∞]> / <length-percentage [0,∞]>;

border-end-end-radius sets the rounding size of one logical corner. The first end means block-end; the second means inline-end. Mapping depends on writing-mode, direction, and text-orientation. With horizontal-tb, this is the bottom-right corner for ltr and the bottom-left corner for rtl.

One nonnegative length or percentage sets both radii. Two values, such as 32px 16px, specify the horizontal and vertical radii, respectively—not block and inline radii. Percentages refer to the border box’s width and height, respectively. Negative values are invalid; a zero radius on either axis makes the corner square.

The initial value is 0; the property is not inherited. CSS Borders Level 4 also defines 32px / 16px and prefers it for new code, but support must be checked separately in the target browser. The example uses the older space-separated syntax.

The example changes only writing direction, demonstrating how rounding moves from the bottom-right corner to the bottom-left corner. The expected radii are 32px horizontally and 16px vertically; the remaining corners stay square.

Examples

<!doctype html>
<meta charset="utf-8">
<title>border-end-end-radius</title>
<style>
  .box {
    box-sizing: border-box;
    width: 160px;
    height: 80px;
    margin: 16px;
    border: 2px solid #123;
    background: #bde;
    writing-mode: horizontal-tb;
    border-end-end-radius: 32px 16px;
  }
</style>
<div class="box" dir="ltr">LTR</div>
<div class="box" dir="rtl">RTL</div>

Result

LTR: bottom-right corner rounded with horizontal radius 32px and vertical radius 16px. RTL: bottom-left corner rounded with the same radii. All other corners remain 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