coderef

Border imagesBaseline · Widely available

The border-image CSS property draws an image around an element.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Feb 1, 2017. Widely available since Aug 1, 2019.

Browser support

DesktopChrome
1–55Not supported
56+Supportedsince Jan 25, 2017
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–49Not supported
50+Supportedsince Nov 15, 2016
Current: 157
Safari
1–9Not supported
9.1+Supportedsince Mar 21, 2016
Current: 27
MobileChrome Android
18–55Not supported
56+Supportedsince Feb 1, 2017
Current: 155
Firefox Android
4–49Not supported
50+Supportedsince Nov 15, 2016
Current: 157
Safari iOS
1–9Not supported
9.3+Supportedsince Mar 21, 2016
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: border-image.

Feature detection

CSS · check before using
@supports (border-image: initial) {
  /* styles that rely on border-image */
}

/* or in JavaScript */
if (CSS.supports("border-image", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (20). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
border-image161215618156
border-image-outset151215618156
border-image-repeat151215618159.3
border-image-repeat.repeat151215618159.3
border-image-repeat.round3012159.130159.3
border-image-repeat.space5612509.156509.3
border-image-repeat.stretch151215618159.3
border-image-slice151215618156
border-image-source151215618156
border-image-source.none151215618156
border-image-width161213618146
border-image-width.auto161215618156
border-image.fill161215618156
border-image.gradient161229618296
border-image.none161215618156
border-image.optional_border_image_slice161215618156
border-image.repeat161215618156
border-image.round161215618156
border-image.space161215618156
border-image.stretch161215618156