CSS border-block-end-color Property
Description
The border-block-end-color CSS property sets the color of the border on the "end" edge of the block axis for an element. Because it is a logical property, its physical side depends on the element’s writing mode and block direction: in a horizontal top-to-bottom writing mode the block-end maps to the bottom edge, while in other writing-mode values it may map to a different physical edge. This makes border-block-end-color useful for styling components in a way that adapts to different writing directions without changing the authoring styles for each physical edge.
This property only controls color - it does not affect border width or style. The visible border still depends on the corresponding border style and width; if the border style is none or hidden the color has no visible effect. You can combine it with logical shorthands such as border-block-color or with the physical shorthand border-color to set multiple edge colors at once; note that shorthand declarations participate in the cascade and can override this property. Also be aware that some rendering techniques (for example when a border-image is used) can replace or obscure the plain border painting so the color may not be visible.
In the cascade, border-block-end-color behaves like other border color properties: it is not inherited by default and will be resolved according to normal specificity and origin rules. You can specify color values that reference the element’s current foreground via the keyword that takes the computed value from the color property, which is handy for keeping border and text colors consistent. For table elements using the collapsed border model, the actual painted color for an edge may be chosen by the conflict resolution algorithm rather than coming directly from this property.
Practically, use border-block-end-color when you need logical, writing-mode-aware control over one block-side’s border color - for example, theming an app UI that must work in both LTR and RTL languages or for components that rotate or change writing direction. When animating border appearance, remember the color can be transitioned independently of width and style, but the visual result will still depend on those other properties; if you set an element’s border-block-end-style to a visible style and change border-block-end-color over time, the stroke will update accordingly.
Definition
- Initial value
- currentcolor
- Applies to
- all elements
- Inherited
- no
- Computed value
- computed color
- Animatable
- by computed value type
- JavaScript syntax
- object.style.borderBlockEndColor
Interactive Demo
Block End Color Property
Syntax
border-block-end-color: <color>
Values
- <color>The color of the border.
Example
Browser Support
The following information will show you the current browser support for the CSS border-block-end-color property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
