CKTIS / CSS
border-inline — borders on both inline-axis edges
The border-inline shorthand sets identical border width, style, and color at the start and end of the inline axis. The 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: <line-width> || <line-style> || <color>;border-inline sets borders on both logical edges: border-inline-start and border-inline-end. In horizontal-tb, these are the left and right edges; in vertical-rl, they are the top and bottom. Mapping depends on writing-mode, direction, and text-orientation.
The syntax accepts width, style, and color in any order. The || operator means at least one component; each can occur at most once. Both edges receive the same set of values, not two separate border specifications. To make them different, use border-inline-start and border-inline-end.
Omitted components reset to their initial values rather than retaining earlier settings. Style is especially important: omitting it restores none, so border-inline: 4px alone produces no visible line. The shorthand does not set the block-axis borders.
The example compares identical borders in two writing modes. A has lines on the left and right; B has lines at the top and bottom.
Examples
<!doctype html>
<meta charset="utf-8">
<title>border-inline</title>
<style>
.box {
box-sizing: border-box;
width: 120px;
height: 80px;
margin: 16px;
border: 0;
border-inline: 4px solid #0055aa;
writing-mode: horizontal-tb;
direction: ltr;
}
.vertical { writing-mode: vertical-rl; }
</style>
<div class="box">A</div>
<div class="box vertical">B</div>
Result
A: left and right borders are 4px solid #0055aa; top and bottom borders are absent. B: top and bottom borders are 4px solid #0055aa; left and right borders are absent.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.