CSS border-inline-end-color Property

The border-inline-end-color property sets the color of an element's logical inline-end border.

The physical side affected depends on the element's writing mode and text direction. Unlike border-right-color, which always targets the right edge, this property follows the logical ending edge of inline content, making it useful for layouts that support different writing directions.

border-inline-end-color Syntax

selector {
  border-inline-end-color: #1769aa;
}

The property accepts one valid CSS color value or a CSS-wide keyword. It does not accept multiple colors because it controls only one logical border edge.

Named Color

.panel {
  border-inline-end-color: blue;
}

The logical inline-end border uses the named color blue.

Hexadecimal Color

.panel {
  border-inline-end-color: #1769aa;
}

The border uses a hexadecimal color value.

RGB Color

.panel {
  border-inline-end-color: rgb(23 105 170);
}

The border uses an RGB color value.

HSL Color

.panel {
  border-inline-end-color: hsl(207 76% 38%);
}

The border uses an HSL color value.

Transparent Color

.panel {
  border-inline-end-color: transparent;
}

The border becomes transparent without changing its specified width or style.

currentcolor Keyword

.panel {
  color: #1769aa;
  border-inline-end-color: currentcolor;
}

The border uses the element's computed text color.

CSS-Wide Keywords

.inherited {
  border-inline-end-color: inherit;
}
.reset {
  border-inline-end-color: initial;
}
.unset {
  border-inline-end-color: unset;
}
.reverted {
  border-inline-end-color: revert;
}
.layer-reverted {
  border-inline-end-color: revert-layer;
}

CSS-wide keywords must be used alone and cannot be combined with other color values.

Property Values

The border-inline-end-color property accepts the CSS <color> data type and standard CSS-wide keywords.

Value Description
<color> Sets the logical inline-end border color using a valid CSS color value.
currentcolor Uses the element's computed text color.
transparent Uses a fully transparent border color.
inherit Inherits the computed value of the property from the parent.
initial Resets the property to currentcolor.
unset Resets the property to its initial value because border colors are not inherited.
revert Reverts the property according to cascade origin rules.
revert-layer Reverts the property according to cascade layer rules.

Property Characteristics

Characteristic Value
Initial value currentcolor
Inherited No
Applies to Elements that support the corresponding border properties
Computed value Computed color
Animation type By computed value type, using color interpolation
Percentages Not applicable as a standalone border-color value

The property controls only color. Border thickness and style are controlled by border-inline-end-width and border-inline-end-style.

How It Works

The browser determines the logical inline-end edge, then applies the specified color to that edge's border.

Step 1: Establish a Border

.panel {
  border-inline-end-width: 5px;
  border-inline-end-style: solid;
}

The element has a solid inline-end border with a width of 5 pixels.

Step 2: Set the Color

.panel {
  border-inline-end-color: #1769aa;
}

The inline-end border receives the blue color.

Step 3: Determine the Physical Edge

.panel {
  writing-mode: horizontal-tb;
  direction: ltr;
}

In horizontal left-to-right writing, inline-end corresponds to the right edge.

Step 4: Complete the Declaration

.panel {
  writing-mode: horizontal-tb;
  direction: ltr;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The element displays a 5-pixel solid blue border on the right.

Step 5: Reverse the Direction

.panel {
  direction: rtl;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The same logical border color now applies to the left edge in horizontal writing mode.

The color remains associated with inline-end even when its physical position changes.

The Logical Inline-End Edge

The inline-end edge is the side toward which inline content progresses within a line.

Horizontal Left-to-Right

Inline content progresses from left to right, so inline-end is the right edge.

Horizontal Right-to-Left

Inline content progresses from right to left, so inline-end is the left edge.

Vertical Top-to-Bottom

Inline content progresses from top to bottom, so inline-end is the bottom edge.

Vertical Bottom-to-Top

Inline content progresses from bottom to top, so inline-end is the top edge.

Logical Color Assignment

.panel {
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The color applies to the logical ending edge, regardless of whether that edge is physically left, right, top, or bottom.

One Border Edge

.panel {
  border-inline-end-color: #1769aa;
}

Only the inline-end border color changes. The inline-start border color is unaffected.

The logical inline-end edge is part of the element's border box. It does not move to the position of the final character in the text.

Writing Modes

The writing-mode and direction properties determine which physical border receives the inline-end color.

Horizontal Writing

.horizontal-panel {
  writing-mode: horizontal-tb;
  direction: ltr;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The color applies to the right border.

Vertical Right-to-Left Writing Mode

.vertical-rl-panel {
  writing-mode: vertical-rl;
  direction: ltr;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The color applies to the bottom border.

Vertical Left-to-Right Writing Mode

.vertical-lr-panel {
  writing-mode: vertical-lr;
  direction: ltr;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The color also applies to the bottom border.

Vertical Writing With RTL Direction

.vertical-rtl-panel {
  writing-mode: vertical-rl;
  direction: rtl;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The color applies to the top border.

Writing Mode Mapping

Writing Mode Direction Inline-End Edge
horizontal-tb ltr Right
horizontal-tb rtl Left
vertical-rl ltr Bottom
vertical-rl rtl Top
vertical-lr ltr Bottom
vertical-lr rtl Top
sideways-rl ltr Bottom
sideways-lr ltr Top

The same border-inline-end-color declaration can therefore affect different physical border colors without changing its value.

Text Direction

The direction property determines the progression of inline content and affects the physical location of inline-end.

Left-to-Right Direction

.ltr-panel {
  direction: ltr;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

In horizontal writing mode, the right border is blue.

Right-to-Left Direction

.rtl-panel {
  direction: rtl;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

In horizontal writing mode, the left border is blue.

HTML Direction Attribute

<div dir="ltr" class="directional-panel">
  Left-to-right content
</div>
<div dir="rtl" class="directional-panel">
  Right-to-left content
</div>
.directional-panel {
  padding: 20px;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The same CSS declaration places the colored border on the appropriate logical ending edge for each element.

Direction-Aware Spacing

.directional-panel {
  padding-inline-end: 20px;
  margin-inline-end: 12px;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

Logical padding and margins can be combined with logical borders to maintain consistent spacing in both text directions.

Use the HTML dir attribute when establishing the direction of document content, especially for multilingual pages.

CSS Color Values

The property supports standard CSS color formats, including named colors, hexadecimal colors, RGB, HSL, HWB, and newer color functions.

Named Color

.panel {
  border-inline-end-color: blue;
}

Hexadecimal Color

.panel {
  border-inline-end-color: #1769aa;
}

RGB Color

.panel {
  border-inline-end-color: rgb(23 105 170);
}

RGB With Alpha

.panel {
  border-inline-end-color: rgb(23 105 170 / 70%);
}

The border is partially transparent.

HSL Color

.panel {
  border-inline-end-color: hsl(207 76% 38%);
}

HWB Color

.panel {
  border-inline-end-color: hwb(207 9% 33%);
}

LAB Color

.panel {
  border-inline-end-color: lab(45% 0 -40);
}

OKLCH Color

.panel {
  border-inline-end-color: oklch(55% 0.15 250);
}

CSS Custom Property

:root {
  --accent-color: #1769aa;
}
.panel {
  border-inline-end-color: var(--accent-color);
}

Custom properties allow border colors to be reused across components and updated from a central declaration.

Color Mixing

.panel {
  border-inline-end-color: color-mix(in srgb, #1769aa 70%, white);
}

The color-mix() function creates a color by mixing the specified values.

Browser support for newer CSS color functions may differ from support for the border-inline-end-color property itself.

currentcolor Keyword

The currentcolor keyword uses the element's computed color value.

Matching the Text Color

.panel {
  color: #1769aa;
  border-inline-end: 5px solid;
  border-inline-end-color: currentcolor;
}

The inline-end border matches the element's text color.

Default Border Color

.panel {
  color: #1769aa;
  border-inline-end: 5px solid;
}

The border uses currentcolor automatically because no explicit border color is supplied.

Changing the Text Color

.panel {
  color: #1769aa;
  border-inline-end: 5px solid currentcolor;
}
.panel:hover {
  color: #27ae60;
}

The border changes to green when the text color changes on hover.

Inherited Text Color

.wrapper {
  color: #1769aa;
}
.wrapper .panel {
  border-inline-end: 5px solid currentcolor;
}

The panel inherits its text color from the wrapper, and its border uses that color.

Explicit Color Override

.panel {
  color: #1769aa;
  border-inline-end: 5px solid;
  border-inline-end-color: #27ae60;
}

The border remains green even though the text is blue.

The border-color property itself is not inherited. The relationship with inherited text color comes from the currentcolor keyword.

Transparent Colors

Transparent border colors allow an element to retain border space without displaying a visible line.

Fully Transparent Border

.panel {
  border-inline-end: 5px solid;
  border-inline-end-color: transparent;
}

The border remains 5 pixels wide but is visually transparent.

Semi-Transparent Border

.panel {
  border-inline-end: 5px solid;
  border-inline-end-color: rgb(23 105 170 / 50%);
}

The border uses a partially transparent blue color.

Hover Effect Without Layout Shift

.panel {
  border-inline-end: 5px solid transparent;
}
.panel:hover {
  border-inline-end-color: #1769aa;
}

The border becomes visible on hover without changing the element's border thickness.

Focus Indicator

.input-field {
  border-inline-end: 4px solid transparent;
}
.input-field:focus-visible {
  border-inline-end-color: #1769aa;
}

The border becomes visible when the field receives keyboard focus. A complete focus indicator should remain clearly visible and distinguishable from surrounding content.

Animated Color Change

.panel {
  border-inline-end: 5px solid transparent;
  transition: border-inline-end-color 0.3s ease;
}
.panel:hover {
  border-inline-end-color: #1769aa;
}

The border color transitions from transparent to blue.

Changing only the border color does not change the element's dimensions. Changing its width or style can affect layout.

Border Width and Style

The border-inline-end-color property does not create a visible border by itself. The border also needs a visible style and a nonzero width.

Color Without a Border Style

.panel {
  border-inline-end-color: #1769aa;
}

No border appears if the style remains at its initial value of none.

Adding a Border Style

.panel {
  border-inline-end-style: solid;
  border-inline-end-color: #1769aa;
}

The border becomes visible using the initial medium width.

Adding a Border Width

.panel {
  border-inline-end-width: 5px;
  border-inline-end-style: solid;
  border-inline-end-color: #1769aa;
}

The element displays a 5-pixel solid blue border.

Using the Shorthand

.panel {
  border-inline-end: 5px solid #1769aa;
}

The shorthand sets all three border components in one declaration.

Dashed Border

.panel {
  border-inline-end: 5px dashed;
  border-inline-end-color: #1769aa;
}

The border is dashed and blue.

Double Border

.panel {
  border-inline-end: 6px double;
  border-inline-end-color: #27ae60;
}

The border uses a double green line.

Zero Width

.panel {
  border-inline-end: 0 solid;
  border-inline-end-color: #1769aa;
}

The border remains invisible because its width is zero.

Removing the Border Style

.panel {
  border-inline-end: 5px solid #1769aa;
  border-inline-end-style: none;
}

The border disappears because the computed width becomes zero when the style is none.

Use border-inline-end when setting the complete border and border-inline-end-color when changing only its color.

Shorthand Interactions

The border-inline-end-color property is a longhand. Several border shorthands can set or reset its value.

border-inline-end Shorthand

.panel {
  border-inline-end: 5px solid #1769aa;
}

The shorthand sets the inline-end width, style, and color.

Color Longhand After Shorthand

.panel {
  border-inline-end: 5px solid #1769aa;
  border-inline-end-color: #27ae60;
}

The later declaration changes only the color to green.

Shorthand After Color Longhand

.panel {
  border-inline-end-color: #27ae60;
  border-inline-end: 5px solid #1769aa;
}

The later shorthand resets the color to blue.

border-inline Shorthand

.panel {
  border-inline: 5px solid #1769aa;
  border-inline-end-color: #27ae60;
}

Both inline borders begin blue, but the inline-end border becomes green.

border-inline-color Shorthand

.panel {
  border-inline: 5px solid;
  border-inline-color: #1769aa #27ae60;
}

The first color applies to inline-start and the second to inline-end.

Overriding One Color

.panel {
  border-inline: 5px solid;
  border-inline-color: #1769aa #27ae60;
  border-inline-end-color: #8e44ad;
}

The inline-start border remains blue, while the inline-end border becomes purple.

border Shorthand

.panel {
  border-inline-end-color: #1769aa;
  border: 5px solid #27ae60;
}

The later border shorthand sets the physical border colors to green, overriding the earlier logical color where they map to the same physical edge.

When multiple declarations target the same border color, the CSS cascade determines the winning value.

Logical vs. Physical Border Colors

Physical border-color properties target fixed sides, while border-inline-end-color follows the logical inline-end edge.

Property Target Writing-Mode Aware
border-left-color Physical left border No
border-right-color Physical right border No
border-top-color Physical top border No
border-bottom-color Physical bottom border No
border-inline-end-color Logical inline-end border Yes

Physical Right Border Color

.panel {
  border-right: 5px solid;
  border-right-color: #1769aa;
}

The blue color remains attached to the physical right border.

Logical Inline-End Border Color

.panel {
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The blue color follows the logical inline-end border.

Horizontal LTR Mapping

.panel {
  writing-mode: horizontal-tb;
  direction: ltr;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The color applies to the physical right border.

Horizontal RTL Mapping

.panel {
  writing-mode: horizontal-tb;
  direction: rtl;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

The color applies to the physical left border.

Conflicting Physical and Logical Colors

.panel {
  border-right: 5px solid #27ae60;
  border-inline-end-color: #1769aa;
}

In horizontal left-to-right writing, both declarations affect the right border color. The later logical color declaration wins when their cascade priority is otherwise equal.

Avoid unnecessary conflicts between physical and logical border properties, especially when supporting multiple writing directions.

Inline-Start vs. Inline-End Colors

The border-inline-start-color and border-inline-end-color properties control opposite logical border edges.

Inline-Start Color

.panel {
  border-inline-start-color: #1769aa;
}

The color applies to the logical beginning edge of the inline axis.

Inline-End Color

.panel {
  border-inline-end-color: #27ae60;
}

The color applies to the logical ending edge of the inline axis.

Combining Both Colors

.panel {
  border-inline: 5px solid;
  border-inline-start-color: #1769aa;
  border-inline-end-color: #27ae60;
}

The inline-start border is blue, and the inline-end border is green.

Equivalent Color Shorthand

.panel {
  border-inline: 5px solid;
  border-inline-color: #1769aa #27ae60;
}

The border-inline-color shorthand assigns both colors in one declaration.

Horizontal Direction Comparison

Direction Inline-Start Color Inline-End Color
LTR Left border Right border
RTL Right border Left border

Vertical Direction Comparison

Inline Progression Inline-Start Color Inline-End Color
Top to bottom Top border Bottom border
Bottom to top Bottom border Top border

Use the individual properties when only one logical border color needs to change. Use border-inline-color when assigning both colors together.

Responsive Design

The border-inline-end-color property can respond to viewport size, container size, color scheme, and changes in writing mode.

Media Query Color

.responsive-panel {
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}
@media (max-width: 600px) {
  .responsive-panel {
    border-inline-end-color: #27ae60;
  }
}

The border changes from blue to green on smaller screens.

Dark Color Scheme

.responsive-panel {
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}
@media (prefers-color-scheme: dark) {
  .responsive-panel {
    border-inline-end-color: #66b3ff;
  }
}

The border uses a lighter blue when the user prefers a dark color scheme.

Container Query

.panel-container {
  container-type: inline-size;
}
.responsive-panel {
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}
@container (min-width: 500px) {
  .responsive-panel {
    border-inline-end-color: #8e44ad;
  }
}

The border color changes when the query container reaches the specified inline size.

Custom Property Colors

.responsive-panel {
  --border-accent: #1769aa;
  border-inline-end: 5px solid;
  border-inline-end-color: var(--border-accent);
}
@media (max-width: 600px) {
  .responsive-panel {
    --border-accent: #27ae60;
  }
}

The custom property allows the border color to change without repeating the complete declaration.

Writing-Mode Change

.responsive-panel {
  writing-mode: horizontal-tb;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}
@media (min-width: 900px) {
  .responsive-panel {
    writing-mode: vertical-rl;
  }
}

Assuming left-to-right inline progression, the colored border moves from the right edge to the bottom edge when the writing mode changes.

Theme Variables

:root {
  --panel-border-color: #1769aa;
}
[data-theme="dark"] {
  --panel-border-color: #66b3ff;
}
.panel {
  border-inline-end: 5px solid;
  border-inline-end-color: var(--panel-border-color);
}

The border color follows the selected theme through a reusable custom property.

Practical Uses

The border-inline-end-color property is useful for navigation separators, content panels, sidebar dividers, interactive elements, and multilingual layouts.

Navigation Separator

.nav-item {
  padding-inline: 16px;
  border-inline-end: 1px solid;
  border-inline-end-color: #cccccc;
}

The separator follows the logical ending edge of each navigation item.

Active Navigation Color

.nav-link {
  border-inline-end: 4px solid transparent;
}
.nav-link[aria-current="page"] {
  border-inline-end-color: #1769aa;
}

The current navigation item receives a visible colored border without changing its dimensions.

Content Panel Accent

.content-panel {
  padding: 24px;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
  background-color: #f3f8fc;
}

The panel uses a blue accent along its logical ending edge.

Sidebar Divider

.sidebar {
  padding-inline-end: 24px;
  border-inline-end: 2px solid;
  border-inline-end-color: #dddddd;
}

The divider remains attached to the sidebar's logical inline-end edge.

Hover Accent

.interactive-panel {
  border-inline-end: 5px solid transparent;
}
.interactive-panel:hover {
  border-inline-end-color: #27ae60;
}

The border becomes green when the element is hovered.

Animated Border Color

.animated-panel {
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
  transition: border-inline-end-color 0.3s ease;
}
.animated-panel:hover {
  border-inline-end-color: #27ae60;
}

The border color transitions smoothly from blue to green.

Form Field State

.form-field {
  border-inline-end: 4px solid;
  border-inline-end-color: #cccccc;
}
.form-field:focus-visible {
  border-inline-end-color: #1769aa;
}
.form-field:user-invalid {
  border-inline-end-color: #c0392b;
}

The border color changes according to the field's focus and validation state.

When border colors communicate important information, provide additional visual or text indicators so meaning does not depend on color alone.

border-inline-end-color Example

The following example demonstrates how the same inline-end border color appears on different physical sides in horizontal and vertical writing modes.

<div class="border-inline-end-color-demo">
  <div class="demo-item">
    <h3>Horizontal LTR</h3>
    <div class="demo-box horizontal-ltr">Blue inline-end</div>
  </div>
  <div class="demo-item">
    <h3>Horizontal RTL</h3>
    <div class="demo-box horizontal-rtl">Blue inline-end</div>
  </div>
  <div class="demo-item">
    <h3>Vertical RL</h3>
    <div class="demo-box vertical-rl">Blue inline-end</div>
  </div>
  <div class="demo-item">
    <h3>Vertical RTL</h3>
    <div class="demo-box vertical-rtl">Blue inline-end</div>
  </div>
</div>
.border-inline-end-color-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.border-inline-end-color-demo .demo-item {
  min-width: 0;
}
.border-inline-end-color-demo h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}
.border-inline-end-color-demo .demo-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 20px;
  border-inline-end-width: 8px;
  border-inline-end-style: solid;
  border-inline-end-color: #1769aa;
  background-color: #f3f8fc;
  color: #173b5e;
  font-weight: bold;
  text-align: center;
}
.border-inline-end-color-demo .horizontal-ltr {
  writing-mode: horizontal-tb;
  direction: ltr;
}
.border-inline-end-color-demo .horizontal-rtl {
  writing-mode: horizontal-tb;
  direction: rtl;
}
.border-inline-end-color-demo .vertical-rl {
  writing-mode: vertical-rl;
  direction: ltr;
}
.border-inline-end-color-demo .vertical-rtl {
  writing-mode: vertical-rl;
  direction: rtl;
}

All four examples use the same border width, style, and color. Only the writing mode or direction changes.

Browser Result

Horizontal LTR

Blue inline-end

Horizontal RTL

Blue inline-end

Vertical RL

Blue inline-end

Vertical RTL

Blue inline-end

The first example uses horizontal left-to-right writing, so the blue border appears on the right.

The second example reverses the text direction, moving the blue border to the left.

The third example uses vertical writing with left-to-right inline progression, placing the blue border on the bottom.

The fourth example uses vertical writing with right-to-left inline progression, placing the blue border on the top.

This demonstrates how border-inline-end-color remains associated with the logical ending edge rather than a fixed physical side.

Important Considerations

Keep the following points in mind when using border-inline-end-color:

  • Purpose: Sets the color of the logical inline-end border.
  • Longhand: Controls the color component of border-inline-end.
  • Logical edge: Follows the ending side of the inline axis.
  • Writing mode: Determines whether the inline axis is horizontal or vertical.
  • Text direction: Determines which physical side corresponds to inline-end.
  • Horizontal LTR: The color applies to the right border.
  • Horizontal RTL: The color applies to the left border.
  • Vertical top-to-bottom: The color applies to the bottom border.
  • Vertical bottom-to-top: The color applies to the top border.
  • Value: Accepts one valid CSS color value.
  • Multiple values: Are invalid because the property controls only one border edge.
  • Initial value: Uses currentcolor.
  • Inheritance: The border-color property is not inherited.
  • currentcolor: Uses the element's computed text color.
  • transparent: Makes the border visually transparent without changing its specified width or style.
  • Color formats: Supports named colors, hexadecimal colors, RGB, HSL, and other valid CSS color values.
  • Border style: A visible border requires a style other than none or hidden.
  • Border width: A visible border requires a nonzero computed width.
  • Layout: Changing only the border color does not change the element's dimensions.
  • Shorthand resets: Later border shorthands may override the color.
  • Physical borders: Avoid unintended conflicts with physical border-color declarations.
  • Inline-start: Use border-inline-start-color for the opposite logical edge.
  • Both inline colors: Use border-inline-color to assign colors to both logical inline edges.
  • Animation: Compatible color values can be interpolated.
  • Custom properties: Can provide reusable border colors for components and themes.
  • Accessibility: Do not rely on border color alone to communicate important information.
  • Border images: A painted border image can cover the regular border color.
  • Browser support: Modern browsers support the standard property without vendor prefixes.

Use border-inline-end-color when the color of a border should follow the logical ending edge of an element across different writing modes and text directions.

Browser Support

The border-inline-end-color property is widely available in current versions of Chrome, Edge, Firefox, Safari, and other major browsers.

The standard property does not require vendor prefixes in modern browsers.

Basic Declaration

.panel {
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

Right-to-Left Direction

.panel {
  direction: rtl;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

Vertical Writing Mode

.panel {
  writing-mode: vertical-rl;
  border-inline-end: 5px solid;
  border-inline-end-color: #1769aa;
}

These examples use standard CSS logical border syntax.

Physical Border Fallback

.panel {
  border-right: 5px solid #1769aa;
}
@supports (border-inline-end-color: #1769aa) {
  .panel {
    border-right: 0;
    border-inline-end: 5px solid;
    border-inline-end-color: #1769aa;
  }
}

This fallback assumes horizontal left-to-right writing. Older browsers use a physical right border, while supporting browsers use the logical inline-end border.

Visit Can I Use? and search for border-inline-end-color to review browser compatibility.

Specifications

The border-inline-end-color property is defined in the CSS Logical Properties and Values Module Level 1 specification.

CSS Logical Properties and Values Module Level 1

The specification defines how logical border colors map to physical border edges according to writing mode and direction.

CSS color values and their behavior are defined in the CSS Color specification.

CSS Color Module Level 4