CKTIS / CSS
border-inline-width — logical inline border thickness
border-inline-width sets border thickness at the start and end of the inline axis. It accepts one or two values and maps the edges according to 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-width: <'border-top-width'>{1,2};border-inline-width is a shorthand setting border-inline-start-width and border-inline-end-width. One value applies to both edges; two values specify inline start followed by inline end. It does not set border color or style.
Common values are nonnegative lengths, such as 4px, and thin, medium, and thick. Percentages and negative values are invalid. Both longhands initially have medium and are not inherited. The CSS Borders Level 4 draft defines thin, medium, and thick as 1px, 3px, and 5px, respectively.
The edges are logical, not permanently left and right. With writing-mode: horizontal-tb and direction: ltr, start means left; with direction: rtl, it means right. In vertical writing modes, the inline axis is vertical. The general mapping depends on writing-mode, direction, and text-orientation.
Thickness alone does not ensure a visible border: with style none or hidden, the used width is zero. The example sets solid and demonstrates the side reversal. Unlike border-width, this shorthand does not set all four edges.
Examples
<!doctype html>
<meta charset="utf-8">
<style>
.box {
writing-mode: horizontal-tb;
direction: ltr;
border: 0 solid black;
border-inline-width: 4px 8px;
padding: 12px;
margin: 12px;
}
.rtl { direction: rtl; }
</style>
<div class="box">LTR</div>
<div class="box rtl">RTL</div>Result
LTR: left border 4px, right border 8px. RTL: left border 8px, right border 4px. Both boxes: top and bottom borders 0px.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.