CKTIS / CSS
border-block-style — block-axis border styles
border-block-style sets the border styles at the start and end of the block axis. It accepts one or two values; their mapping to physical edges depends on the writing mode.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
border-block-style: <'border-top-style'>{1,2};border-block-style is shorthand for border-block-start-style and border-block-end-style. One value sets both styles; with two values, the first sets the block-start style and the second sets block-end. In horizontal-tb, these are top and bottom; in vertical-rl, they are right and left.
Allowed styles are none, hidden, dotted, dashed, solid, double, groove, ridge, inset, and outset. Both longhands initially have none; they are not inherited and animate discretely.
The shorthand does not set width or color. Use border-block-width and border-block-color separately. In the CSS Borders and Box Decorations Level 4 draft, both none and hidden make the used border width zero, not the computed border width. They differ in border conflict resolution in the collapsed table border model. Unlike border-style, this property controls only two logical edges.
Examples
<!doctype html>
<meta charset="utf-8">
<title>border-block-style</title>
<style>
.box {
writing-mode: horizontal-tb;
border: 0 solid black;
border-block-width: 6px;
border-block-style: solid dashed;
padding: 16px;
}
</style>
<div class="box">border-block-style</div>Result
The box has a solid black 6px top border and a dashed black 6px bottom border, with no visible left or right border.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.