CKTIS / CSS
border-block-end-style: choose the line and its presence
Control the pattern at block-end and understand why none removes width while a transparent solid border keeps it.
Version: CSS Modules
Syntax
border-block-end-style: double;border-block-end-style selects the line style on one logical edge. Common choices include solid, dashed, dotted and double; the property also accepts none, hidden, groove, ridge, inset and outset. The initial style is none. The edge is bottom in horizontal-tb, left in vertical-rl and right in vertical-lr. This is independent of reversing ltr to rtl in those modes. The property does not itself choose a new color or specified width, and a positive width is needed for a visible line.
none and hidden yield zero used border width. On an ordinary box they therefore occupy no border space, although hidden has a separate role in conflict resolution for collapsed table borders. double uses the declared width for the entire two-line border, including its gap; it does not add two borders of that width. A transparent solid border is a useful contrast: its style and nonzero width remain, so it still affects box geometry. A discrete style change is not a continuous interpolation between dash patterns.
The test uses vertical-lr with rtl, a 60×20 content area, a 2px start border and an end width specified as 6px. At the physical right edge, none and hidden read 0px and leave a 62×20 box. solid, dashed and double each read 6px and produce 68×20; double does not make the box wider than solid. A separate horizontal box with a 6px transparent solid end border is 60×26, demonstrating retained space even when the color cannot be seen.
Examples
for(const style of ['none','hidden','solid','dashed','double']){const el=document.createElement('div');el.style.cssText='writing-mode:vertical-lr;direction:rtl;width:60px;height:20px;box-sizing:content-box;padding:0;border:0;border-block-start:2px solid gray;border-block-end-width:6px;border-block-end-color:blue';el.style.borderBlockEndStyle=style;document.body.append(el);const s=getComputedStyle(el),r=el.getBoundingClientRect();console.log(style+'='+s.borderRightStyle+','+s.borderRightWidth+'; start='+s.borderLeftWidth+'; box='+r.width+'x'+r.height)}
const transparent=document.createElement('div');transparent.style.cssText='width:60px;height:20px;box-sizing:content-box;border-block-end:6px solid transparent';document.body.append(transparent);const s=getComputedStyle(transparent),r=transparent.getBoundingClientRect();console.log('transparent-solid='+s.borderBlockEndStyle+','+s.borderBlockEndWidth+'; box='+r.width+'x'+r.height);Result
none=none,0px; start=2px; box=62x20 hidden=hidden,0px; start=2px; box=62x20 solid=solid,6px; start=2px; box=68x20 dashed=dashed,6px; start=2px; box=68x20 double=double,6px; start=2px; box=68x20 transparent-solid=solid,6px; box=60x26
Executed in Chromium 157.0.8103.51 using computed line styles and actual box sizes. No pixel assertion verifies dash or double-line drawing, and the example deliberately does not exercise collapsed-table conflict rules or border-image overrides.