CSS border-image-source Property

The border-image-source property specifies the image used to paint an element's border instead of its regular border style.

The source can be an external image, an SVG graphic, or a CSS-generated image such as a gradient. The image is divided into sections using border-image-slice, then painted according to the border-image width, outset, and repeat settings. The property can create decorative frames, patterned borders, and multicolored effects without additional HTML elements.

border-image-source Syntax

selector {
  border-image-source: url("border-pattern.png");
}

The property accepts an image value or the keyword none.

External Image

.frame {
  border-image-source: url("decorative-border.png");
}

The image file supplies the artwork used to paint the border.

SVG Image

.frame {
  border-image-source: url("decorative-border.svg");
}

An SVG image can provide scalable border artwork.

Linear Gradient

.frame {
  border-image-source: linear-gradient(90deg, #1769aa, #27ae60);
}

A linear gradient generates the border image directly in CSS.

Conic Gradient

.frame {
  border-image-source: conic-gradient(#1769aa, #27ae60, #8e44ad, #1769aa);
}

A conic gradient can distribute multiple colors around the border.

No Border Image

.frame {
  border-image-source: none;
}

The regular border is painted instead of a border image.

Complete Border Image Example

.frame {
  border: 16px solid transparent;
  border-image-source: url("decorative-border.png");
  border-image-slice: 30;
  border-image-repeat: round;
}

The source image is sliced into sections and painted around the element using rounded repetition.

CSS-Wide Keywords

.inherited {
  border-image-source: inherit;
}
.reset {
  border-image-source: initial;
}
.unset {
  border-image-source: unset;
}
.reverted {
  border-image-source: revert;
}
.layer-reverted {
  border-image-source: revert-layer;
}

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

Property Values

Value Description
none Specifies that no border image is used. This is the initial value.
<image> Specifies an image to use as the border-image source.
url() References an external image resource, such as PNG, JPEG, WebP, or SVG.
linear-gradient() Generates a linear color gradient as the border image.
radial-gradient() Generates a radial color gradient as the border image.
conic-gradient() Generates a conic color gradient as the border image.
repeating-linear-gradient() Generates a repeating linear gradient pattern.
repeating-radial-gradient() Generates a repeating radial gradient pattern.
repeating-conic-gradient() Generates a repeating conic gradient pattern.
image-set() Provides alternative image resources from which the browser can select.

CSS-Wide Keywords

Keyword Behavior
inherit Uses the parent's computed border-image source.
initial Resets the property to none.
unset Resets the property to none because it is not inherited.
revert Reverts the value according to cascade origin rules.
revert-layer Reverts the value according to cascade layer rules.

The initial value is none. The property is not inherited, and its animation type is discrete.

How It Works

The border-image-source property identifies the image used by the CSS border-image painting system.

It does not independently determine how the image is divided, sized, or repeated. Those behaviors are controlled by related border-image properties.

Step 1: Select the Source Image

.frame {
  border-image-source: url("frame.png");
}

The browser loads the specified image resource.

Step 2: Slice the Image

.frame {
  border-image-slice: 30;
}

The source image is divided into nine sections using four inward slice offsets.

Step 3: Determine Painted Width

.frame {
  border-image-width: 16px;
}

The painted border-image regions are sized according to the specified width.

Step 4: Set the Repeat Mode

.frame {
  border-image-repeat: round;
}

The edge sections repeat with adjusted tile sizes so complete repetitions fit.

Step 5: Paint the Border Image

.frame {
  border: 16px solid transparent;
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-width: 16px;
  border-image-repeat: round;
}

The browser paints the image sections around the element's border-image area.

Changing the Source

.frame {
  border-image-source: url("alternate-frame.png");
}

Changing the source replaces the artwork while preserving the existing slice, width, outset, and repeat settings.

The source image is responsible for the border's artwork. The remaining border-image properties determine how that artwork is applied.

Image Sources

The border-image-source property accepts CSS image values rather than ordinary color values.

Raster Images

.png-frame {
  border-image-source: url("frame.png");
}
.webp-frame {
  border-image-source: url("frame.webp");
}
.jpeg-frame {
  border-image-source: url("frame.jpg");
}

Raster images are useful for decorative artwork, textures, and photographic border designs.

Vector Images

.svg-frame {
  border-image-source: url("frame.svg");
}

Vector images can remain sharp when scaled to different border sizes.

Generated Images

.gradient-frame {
  border-image-source: linear-gradient(90deg, #1769aa, #27ae60);
}

CSS gradients create image content without loading an external file.

Multiple Resolution Sources

.responsive-image-frame {
  border-image-source: image-set(
    url("frame.png") 1x,
    url("frame@2x.png") 2x
  );
}

The browser can select an image resource appropriate for the device's display resolution.

Transparency

Transparent areas in the source image remain transparent when painted. This allows the element's background or surrounding content to show through.

Choosing an Image Format

Use PNG or WebP when detailed raster artwork and transparency are needed. Use SVG when the artwork benefits from scalable vector shapes.

Choose a source image with clearly defined corner and edge regions when the border needs to stretch or repeat cleanly.

none Value

The none keyword disables the border-image source.

.frame {
  border-image-source: none;
}

When no border image is available, the element uses its regular border styling.

Default Behavior

.frame {
  border: 4px solid #1769aa;
}

Because border-image-source defaults to none, the regular blue border is displayed.

Removing a Border Image

.frame {
  border: 8px solid #1769aa;
  border-image-source: linear-gradient(90deg, #1769aa, #27ae60);
  border-image-slice: 1;
}
.frame.plain-border {
  border-image-source: none;
}

Adding the plain-border class removes the border image and reveals the regular border.

Disabling an Image at Smaller Widths

.frame {
  border-image-source: url("decorative-frame.png");
}
@media (max-width: 600px) {
  .frame {
    border-image-source: none;
  }
}

The decorative border image is removed at smaller viewport widths.

Retaining Other Border Image Settings

Setting border-image-source to none does not reset the slice, width, outset, or repeat properties.

If another image source is applied later, those existing settings can affect how the new image is painted.

Images With url()

The url() function references an external image resource.

Relative Image Path

.frame {
  border-image-source: url("images/frame.png");
}

A relative URL in an external stylesheet is resolved relative to the stylesheet's location.

Root-Relative Image Path

.frame {
  border-image-source: url("/images/frame.png");
}

A root-relative URL begins at the website's root directory.

Absolute Image URL

.frame {
  border-image-source: url("https://www.example.com/images/frame.png");
}

An absolute URL identifies the image resource using its complete address.

Complete Raster Image Example

.image-frame {
  padding: 24px;
  border: 20px solid transparent;
  border-image-source: url("images/decorative-frame.png");
  border-image-slice: 30;
  border-image-repeat: round;
}

The image is sliced and repeated around the element's border.

Missing Image Resource

If the image cannot be loaded, the browser falls back to the regular border styling.

External Image Considerations

Verify that the image URL is correct and that the resource is accessible. External images also introduce an additional resource request.

For decorative borders used throughout a website, keep source images organized and use consistent paths.

SVG Images

SVG images are useful for border artwork that contains geometric shapes, lines, or repeating vector patterns.

External SVG Source

.svg-frame {
  border: 16px solid transparent;
  border-image-source: url("images/frame.svg");
  border-image-slice: 20;
  border-image-repeat: round;
}

The SVG supplies the artwork, and the slice value divides it into border-image sections.

SVG With Percentage Slices

.svg-frame {
  border: 16px solid transparent;
  border-image-source: url("images/frame.svg");
  border-image-slice: 20%;
  border-image-repeat: stretch;
}

Percentage slice offsets are calculated relative to the SVG image's dimensions.

SVG With Different Slice Offsets

.svg-frame {
  border: 16px solid transparent;
  border-image-source: url("images/frame.svg");
  border-image-slice: 10 20 30 40;
  border-image-repeat: stretch;
}

Different offsets can accommodate SVG artwork with unequal corner or edge regions.

Scalable Artwork

Vector shapes can remain sharp when painted at different sizes, making SVG suitable for responsive decorative frames.

SVG Coordinate System

Numeric slice values for SVG images are interpreted using the image's coordinate system rather than ordinary CSS pixel lengths.

Designing SVG Border Artwork

Place corner details and edge patterns in predictable regions so the slice lines separate them cleanly.

For repeated patterns, ensure that the edge sections can tile without creating unwanted seams.

Gradient Images

CSS gradients can be used directly as border-image sources because gradients produce image values.

Linear Gradient

.linear-frame {
  border: 8px solid transparent;
  border-image-source: linear-gradient(90deg, #1769aa, #27ae60);
  border-image-slice: 1;
}

The border transitions horizontally from blue to green.

Vertical Linear Gradient

.vertical-frame {
  border: 8px solid transparent;
  border-image-source: linear-gradient(180deg, #1769aa, #27ae60);
  border-image-slice: 1;
}

The gradient transitions vertically through the border-image area.

Radial Gradient

.radial-frame {
  border: 8px solid transparent;
  border-image-source: radial-gradient(circle, #ffffff, #1769aa);
  border-image-slice: 1;
}

The border uses colors sampled from a radial gradient.

Conic Gradient

.conic-frame {
  border: 8px solid transparent;
  border-image-source: conic-gradient(#1769aa, #27ae60, #8e44ad, #1769aa);
  border-image-slice: 1;
}

The conic gradient distributes colors around a central point.

Multiple Color Stops

.multicolor-frame {
  border: 8px solid transparent;
  border-image-source: linear-gradient(90deg, #1769aa 0%, #27ae60 50%, #8e44ad 100%);
  border-image-slice: 1;
}

Multiple color stops create a multicolored border.

Gradient Border With Shorthand

.gradient-frame {
  border: 8px solid transparent;
  border-image: linear-gradient(90deg, #1769aa, #27ae60) 1;
}

The shorthand provides a compact way to define the source and slice together.

Gradient Border Limitations

Border images are not clipped into rounded corners by border-radius in the same way as ordinary borders.

For rounded gradient borders, layered backgrounds or a pseudo-element may provide more control.

Repeating Gradients

Repeating gradients can create patterned borders without external image files.

Repeating Linear Gradient

.striped-frame {
  border: 10px solid transparent;
  border-image-source: repeating-linear-gradient(45deg, #1769aa 0 10px, #ffffff 10px 20px);
  border-image-slice: 1;
}

The repeating linear gradient creates diagonal stripes around the border.

Repeating Radial Gradient

.radial-pattern-frame {
  border: 10px solid transparent;
  border-image-source: repeating-radial-gradient(circle, #1769aa 0 8px, #ffffff 8px 16px);
  border-image-slice: 1;
}

The repeating radial gradient creates concentric color bands.

Repeating Conic Gradient

.conic-pattern-frame {
  border: 10px solid transparent;
  border-image-source: repeating-conic-gradient(#1769aa 0deg 20deg, #ffffff 20deg 40deg);
  border-image-slice: 1;
}

The repeating conic gradient creates angular color bands.

Pattern Scale

Gradient color-stop positions determine the spacing of the generated pattern.

Gradient Repetition Versus Border Image Repetition

A repeating gradient generates a pattern within the source image. The border-image-repeat property separately determines how the sliced source sections are fitted along the border edges.

These are different repetition mechanisms and can produce different visual results.

Image Slicing

The border-image-slice property determines which parts of the source image are used for the corners, edges, and optional center.

Single Slice Value

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 30;
}

The source image is sliced 30 image units inward from each edge.

Percentage Slice

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 25%;
}

The slice offsets are calculated relative to the source image's dimensions.

Different Slice Offsets

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 10 20 30 40;
}

The offsets apply to the top, right, bottom, and left source-image edges.

Preserving the Center

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 30 fill;
}

The fill keyword causes the center section to be painted.

Default Slice Value

The initial border-image-slice value is 100%.

For decorative image files, an explicit slice value is usually needed to separate the artwork into useful corner and edge sections.

Choosing Slice Values

Choose slice offsets based on the image's artwork rather than the element's final dimensions.

Incorrect slice values can produce distorted corners, incomplete patterns, or unwanted seams.

Border Image Sizing

The border-image-width property determines the thickness of the painted border-image regions.

Using the Regular Border Width

.frame {
  border: 16px solid transparent;
  border-image-source: url("frame.png");
  border-image-slice: 30;
}

By default, the painted border-image width follows the regular border width.

Explicit Border Image Width

.frame {
  border: 12px solid transparent;
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-width: 20px;
}

The painted border-image regions are 20 pixels wide even though the regular border width is 12 pixels.

Different Widths

.frame {
  border: 12px solid transparent;
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-width: 10px 20px;
}

The top and bottom painted regions are 10 pixels wide, while the right and left regions are 20 pixels wide.

Border Image Outset

.frame {
  border: 12px solid transparent;
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-width: 12px;
  border-image-outset: 8px;
}

The border image extends 8 pixels beyond the border box.

Layout Versus Painting

The regular border width affects the element's box-model dimensions. The border-image width and outset affect painting without changing those dimensions.

Use these properties together when the artwork needs a different painted thickness from the layout border.

Border Image Repetition

The border-image-repeat property controls how the sliced edge sections of the source image fill the available border edges.

Stretch

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-repeat: stretch;
}

The edge sections stretch to fill the available border-image regions.

Repeat

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-repeat: repeat;
}

The edge sections repeat at their calculated tile sizes. Partial tiles may be clipped.

Round

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-repeat: round;
}

The tiles are adjusted to fit complete repetitions along the edges.

Space

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-repeat: space;
}

Complete tiles are repeated with leftover space distributed between them.

Different Horizontal and Vertical Modes

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-repeat: round stretch;
}

The top and bottom edges use rounded repetition. The left and right edges stretch.

The source image supplies the artwork, while the repeat mode determines how the sliced edge sections are fitted.

Border Image Shorthand

The border-image-source property is one of five components controlled by the border-image shorthand.

Basic Shorthand

.frame {
  border-image: url("frame.png") 30 round;
}

The shorthand specifies the source image, slice value, and repeat mode.

Complete Shorthand

.frame {
  border-image: url("frame.png") 30 / 16px / 8px round;
}

The shorthand specifies the source, slice, painted width, outset, and repeat behavior.

Equivalent Longhand Declarations

.frame {
  border-image-source: url("frame.png");
  border-image-slice: 30;
  border-image-width: 16px;
  border-image-outset: 8px;
  border-image-repeat: round;
}

These declarations produce the same border-image configuration as the complete shorthand.

Gradient Shorthand

.frame {
  border-image: linear-gradient(90deg, #1769aa, #27ae60) 1;
}

The gradient supplies the image source directly.

Shorthand Reset Behavior

.frame {
  border-image-source: url("frame.png");
  border-image: linear-gradient(90deg, #1769aa, #27ae60) 1;
}

The later shorthand replaces the earlier source and resets the other border-image components to the values specified or their initial values.

Longhand After Shorthand

.frame {
  border-image: url("frame.png") 30 round;
  border-image-source: url("alternate-frame.png");
}

The later longhand replaces only the image source. The slice and repeat settings remain unchanged.

Use the longhand property when changing the source without altering the other border-image settings.

Fallback Borders

A regular CSS border can provide a fallback when the border image cannot be loaded or used.

Basic Fallback

.frame {
  border: 12px solid #1769aa;
  border-image-source: url("frame.png");
  border-image-slice: 30;
}

If the border image is unavailable, the regular blue border can be displayed.

Gradient Border With Fallback

.frame {
  border: 8px solid #1769aa;
  border-image: linear-gradient(90deg, #1769aa, #27ae60) 1;
}

The regular border provides a solid-color fallback.

Avoiding a Transparent Fallback

.frame {
  border: 12px solid transparent;
  border-image: url("frame.png") 30 round;
}

A transparent regular border reserves space but will not provide a visible fallback if the image fails.

Using a Visible Border Color

.frame {
  border: 12px solid #1769aa;
  border-image: url("frame.png") 30 round;
}

The regular border remains available as a visible fallback.

Source Image Availability

Check image paths and confirm that external resources load successfully. A broken source URL can leave the element without the intended decorative border.

For important visual boundaries, use a regular border color that remains visible when the image is unavailable.

Responsive Border Images

Border-image sources can be changed at different viewport or container sizes.

Responsive Image Source

.responsive-frame {
  border: 16px solid #1769aa;
  border-image-source: url("frame-large.png");
  border-image-slice: 30;
  border-image-repeat: round;
}
@media (max-width: 600px) {
  .responsive-frame {
    border-image-source: url("frame-small.png");
  }
}

The source image changes on smaller screens while the existing slice and repeat settings remain in effect.

Gradient on Smaller Screens

.responsive-frame {
  border: 12px solid #1769aa;
  border-image: url("decorative-frame.png") 30 round;
}
@media (max-width: 600px) {
  .responsive-frame {
    border-image: linear-gradient(90deg, #1769aa, #27ae60) 1;
  }
}

The decorative image is replaced with a simpler gradient border at smaller viewport widths.

Container Query

.frame-container {
  container-type: inline-size;
}
.responsive-frame {
  border-image-source: linear-gradient(90deg, #1769aa, #27ae60);
  border-image-slice: 1;
}
@container (min-width: 500px) {
  .responsive-frame {
    border-image-source: linear-gradient(90deg, #8e44ad, #1769aa);
  }
}

The gradient source changes when the query container reaches the specified width.

High-Resolution Images

.responsive-frame {
  border-image-source: image-set(
    url("frame.png") 1x,
    url("frame@2x.png") 2x
  );
}

The browser can select a suitable image resource based on display resolution.

Responsive Border Thickness

.responsive-frame {
  border: clamp(8px, 1.5vw, 20px) solid #1769aa;
  border-image: linear-gradient(90deg, #1769aa, #27ae60) 1;
}

The border width adjusts with the viewport while the gradient source remains unchanged.

When replacing raster or SVG sources, verify that the existing slice values are appropriate for each image.

Practical Uses

The border-image-source property can be used for decorative frames, gradient borders, patterned panels, and image-based interface details.

Decorative Frame

.decorative-frame {
  padding: 24px;
  border: 20px solid #1769aa;
  border-image-source: url("decorative-frame.png");
  border-image-slice: 30;
  border-image-repeat: round;
}

The image supplies the artwork used around the element's edges.

Gradient Card Border

.gradient-card {
  padding: 24px;
  border: 6px solid #1769aa;
  border-image-source: linear-gradient(90deg, #1769aa, #27ae60);
  border-image-slice: 1;
}

The card uses a horizontal gradient border without an external image.

Multicolored Panel

.multicolor-panel {
  padding: 24px;
  border: 8px solid #1769aa;
  border-image-source: conic-gradient(#1769aa, #27ae60, #8e44ad, #1769aa);
  border-image-slice: 1;
}

The conic gradient creates a multicolored border around the panel.

Striped Border

.striped-panel {
  padding: 24px;
  border: 10px solid #1769aa;
  border-image-source: repeating-linear-gradient(45deg, #1769aa 0 10px, #ffffff 10px 20px);
  border-image-slice: 1;
}

The repeating gradient creates a striped border effect.

SVG Pattern Frame

.svg-pattern-frame {
  padding: 24px;
  border: 16px solid #1769aa;
  border-image-source: url("pattern-frame.svg");
  border-image-slice: 20;
  border-image-repeat: repeat;
}

The SVG provides scalable artwork that repeats along the border edges.

Filled Image Panel

.filled-panel {
  padding: 24px;
  border: 20px solid #1769aa;
  border-image-source: url("decorative-panel.png");
  border-image-slice: 30 fill;
}

The source image supplies both the border artwork and the center panel design.

border-image-source Example

The following example compares three CSS-generated image sources. Each border uses the same width and slice value, but a different gradient.

<div class="border-source-demo">
  <div class="demo-item">
    <h3>Linear Gradient</h3>
    <div class="demo-box linear-border">linear-gradient()</div>
  </div>
  <div class="demo-item">
    <h3>Conic Gradient</h3>
    <div class="demo-box conic-border">conic-gradient()</div>
  </div>
  <div class="demo-item">
    <h3>Repeating Gradient</h3>
    <div class="demo-box repeating-border">repeating-linear-gradient()</div>
  </div>
</div>
.border-source-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.border-source-demo .demo-item {
  min-width: 0;
}
.border-source-demo h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}
.border-source-demo .demo-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 20px;
  border: 12px solid #1769aa;
  border-image-slice: 1;
  background-color: #f3f8fc;
  color: #173b5e;
  font-weight: bold;
  text-align: center;
  overflow-wrap: anywhere;
}
.border-source-demo .linear-border {
  border-image-source: linear-gradient(90deg, #1769aa, #27ae60);
}
.border-source-demo .conic-border {
  border-image-source: conic-gradient(#1769aa, #27ae60, #8e44ad, #1769aa);
}
.border-source-demo .repeating-border {
  border-image-source: repeating-linear-gradient(45deg, #1769aa 0 10px, #ffffff 10px 20px);
}

The live preview uses CSS gradients, so no external image files are required.

Browser Result

Linear Gradient

linear-gradient()

Conic Gradient

conic-gradient()

Repeating Gradient

repeating-linear-gradient()

The first example uses a linear gradient to create a smooth color transition along the border.

The second example uses a conic gradient to distribute several colors around the element.

The third example uses a repeating linear gradient to create a striped border pattern.

All three examples use the same border width and slice value. Only border-image-source changes.

Important Considerations

Keep the following points in mind when using border-image-source:

  • Purpose: Specifies the image used to paint an element's border.
  • Initial value: The initial value is none.
  • Inheritance: The property is not inherited.
  • Accepted values: Supports none and CSS image values.
  • External images: Can reference raster or SVG resources using url().
  • Generated images: Supports CSS gradients and other supported image functions.
  • Image sets: image-set() can provide alternative image resources.
  • Colors: Plain color values are not valid border-image sources.
  • Source slicing: border-image-slice determines how the source is divided into sections.
  • Painted width: border-image-width determines the thickness of the painted regions.
  • Outset: border-image-outset can extend painting beyond the border box.
  • Repetition: border-image-repeat controls how edge sections stretch or repeat.
  • Center section: The center is discarded unless fill is specified in border-image-slice.
  • Regular border: A visible regular border can provide a fallback when the image is unavailable.
  • Transparent border: Reserves space but does not provide a visible fallback.
  • Image paths: External image URLs must resolve correctly.
  • Raster quality: Small raster images may become blurry when enlarged.
  • SVG: Vector artwork can remain sharp at different painted sizes.
  • Gradients: Provide image-based borders without external image requests.
  • Border radius: Border images do not follow rounded corners in the same way as regular borders.
  • Shorthand: The source can be specified through border-image.
  • Shorthand resets: A later shorthand can replace the source and reset other border-image settings.
  • Animation: The property uses discrete animation behavior.
  • Browser support: Modern browsers support the standard property without vendor prefixes.

Use border-image-source when an element needs decorative border artwork, a gradient border, or a patterned frame that cannot be achieved with a regular border style alone.

Browser Support

The border-image-source property is widely available and supported in current versions of Chrome, Edge, Firefox, Safari, and other major browsers.

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

External Image Declaration

.frame {
  border: 16px solid #1769aa;
  border-image: url("frame.png") 30 round;
}

Gradient Declaration

.frame {
  border: 8px solid #1769aa;
  border-image: linear-gradient(90deg, #1769aa, #27ae60) 1;
}

SVG Declaration

.frame {
  border: 16px solid #1769aa;
  border-image: url("frame.svg") 20 round;
}

All three examples use standard CSS border-image syntax.

Fallback Border

.frame {
  border: 12px solid #1769aa;
  border-image-source: url("frame.png");
  border-image-slice: 30;
}

The regular border provides a fallback if the image resource is unavailable.

Visit Can I Use? and search for border-image-source to review browser compatibility.

Specifications

The border-image-source property is defined in the CSS Backgrounds and Borders Module Level 3 specification.

CSS Backgrounds and Borders Module Level 3

The specification defines how an image source is selected and used by the border-image painting system.

Related image slicing, sizing, outset, and repetition rules are defined in the same specification.

CSS Border Images