CKTIS / CSS
border-inline-color — logical inline border colors
border-inline-color sets the border colors at the start and end of the inline axis. One value applies to both sides; two values mean start then end. Their physical edges depend on writing direction and writing mode.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
border-inline-color: <'border-top-color'>{1,2};border-inline-color is a shorthand for border-inline-start-color and border-inline-end-color. One value sets both colors; two space-separated values set the inline start and end colors respectively. It does not change border width or style.
With writing-mode: horizontal-tb and direction: ltr, start means the left edge and end means the right edge. direction: rtl reverses that mapping. In vertical writing modes, the inline axis runs vertically, so this property should not be treated as a synonym for left and right border colors.
Typical values are colors, including transparent and currentcolor. Both longhands initially use currentcolor and are not inherited. Color alone does not display a border without a visible style and nonzero width.
The formal grammar references border-top-color. The CSS Borders Level 4 draft extends its values with <image-1D>; this does not establish browser support. The example uses only colors and requires local verification.
Examples
<!doctype html>
<meta charset="utf-8">
<title>border-inline-color</title>
<style>
.box {
writing-mode: horizontal-tb;
direction: ltr;
margin: 12px;
padding: 12px;
border: 6px solid gray;
border-inline-color: red blue;
}
.rtl { direction: rtl; }
</style>
<div class="box">LTR</div>
<div class="box rtl">RTL</div>Result
LTR: left border red, right border blue. RTL: left border blue, right border red. Both: top and bottom borders gray; all borders 6px solid.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.