With writing-mode: vertical-rl, block sides map to the physical right and left. Use logical properties when layout must follow text flow.
hidden
hidden vs none
Both look invisible on normal boxes. In tables with border-collapse: collapse, hidden can suppress neighboring borders in a conflict.
double
double needs thickness
A 1px double border often looks like a single line. Use at least 3px or 4px so both strokes show.
Compatibility
Browser Support
border-block-style is a browser style property from CSS Logical Properties. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available since 2021
border-block-style
Chrome 87+, Firefox 66+, Safari 14.1+, Edge 87+, Opera 73+. Internet Explorer has no support.
97%global support
Google Chrome87+
Full support
Mozilla Firefox66+
Full support
Apple Safari14.1+
Full support
Microsoft Edge87+
Full support
Opera73+
Full support
Samsung Internet14.0+
Full support
Internet ExplorerNo
No support
border-block-styleWidely supported
Bottom line: Safe in current browsers. For older Internet Explorer, fall back to physical properties such as border-top-style and border-bottom-style.
Remember
Key Takeaways
Role: set the line style on the logical block-start and block-end borders.
One or two values: one styles both sides; two set start, then end.
Needs a width: style alone is not enough. Pair with width (and usually color).
Logical: follows writing mode. Not the same as fixed top and bottom.
One line:border-block-style paints the block-axis borders in a writing-mode-aware way.
Frequently Asked Questions
It sets the line style of the logical block-start and block-end borders. In horizontal-tb writing, that is usually the top and bottom borders. The physical edges change with writing-mode, direction, and text-orientation.
The initial value is none for both sides. No block border is drawn until you set a visible style such as solid or dashed, plus a width greater than zero.
Yes. One value sets both block-start and block-end. Two values set block-start first, then block-end. Example: solid dashed.
none and hidden draw no line. You also need border-block-width greater than zero. Color defaults to currentColor, so a missing color alone is rarely the problem.
border-top-style always targets the physical top edge. border-block-style follows the block axis, so in vertical writing it can land on the left or right edges instead.
Chrome 87+, Firefox 66+, Safari 14.1+, Edge 87+, and Opera 73+. Internet Explorer does not support it. It is a browser style property, not a Node.js feature.