Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

border-inline-start-color — inline-start border color

The border-inline-start-color property sets the border color at the start of an element’s inline axis. In horizontal text, this means the left edge for ltr and the right edge for rtl; it does not set the border width or style.

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

Syntax

border-inline-start-color: <color>;
/* CSS Borders Level 4 draft grammar: <color> | <image-1D> */
border-inline-start-color: inherit | initial | unset | revert | revert-layer;

border-inline-start-color sets the color of the logical border edge at inline start. Its physical-edge mapping depends on writing-mode, direction, and text-orientation. With writing-mode: horizontal-tb, it maps to the left edge for direction: ltr and the right edge for direction: rtl; it is therefore not a fixed replacement for border-left-color.

A typical value is a <color>, such as #008000, transparent, or currentcolor. The initial value, currentcolor, uses the element’s text color. The property is not inherited. It changes only color: a visible border also needs an appropriate style and a nonzero width.

The border-inline-start shorthand also sets this edge’s style and width; a later shorthand can overwrite an earlier color declaration. The CSS Borders Level 4 draft extends the grammar with <image-1D>—this is not confirmation of support in the target browser. The example uses only <color>.

Examples

<!doctype html>
<meta charset="utf-8">
<title>border-inline-start-color</title>
<style>
  .box {
    writing-mode: horizontal-tb;
    margin: 12px;
    padding: 12px;
    border: 4px solid gray;
    border-inline-start-color: #008000;
  }
  .ltr { direction: ltr; }
  .rtl { direction: rtl; }
</style>
<div class="box ltr">LTR</div>
<div class="box rtl">RTL</div>

Result

LTR: left border #008000; other borders gray.
RTL: right border #008000; other borders gray.

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