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: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–49Not supported
50+Supportedsince Nov 15, 2016
Current: 157Safari
1–9Not supported
9.1+Supportedsince Mar 21, 2016
Current: 27MobileChrome Android
18–55Not supported
56+Supportedsince Feb 1, 2017
Current: 155Firefox Android
4–49Not supported
50+Supportedsince Nov 15, 2016
Current: 157Safari iOS
1–9Not supported
9.3+Supportedsince Mar 21, 2016
Current: 27How 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-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| border-image | 16 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image-outset | 15 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image-repeat | 15 | 12 | 15 | 6 | 18 | 15 | 9.3 |
| border-image-repeat.repeat | 15 | 12 | 15 | 6 | 18 | 15 | 9.3 |
| border-image-repeat.round | 30 | 12 | 15 | 9.1 | 30 | 15 | 9.3 |
| border-image-repeat.space | 56 | 12 | 50 | 9.1 | 56 | 50 | 9.3 |
| border-image-repeat.stretch | 15 | 12 | 15 | 6 | 18 | 15 | 9.3 |
| border-image-slice | 15 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image-source | 15 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image-source.none | 15 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image-width | 16 | 12 | 13 | 6 | 18 | 14 | 6 |
| border-image-width.auto | 16 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image.fill | 16 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image.gradient | 16 | 12 | 29 | 6 | 18 | 29 | 6 |
| border-image.none | 16 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image.optional_border_image_slice | 16 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image.repeat | 16 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image.round | 16 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image.space | 16 | 12 | 15 | 6 | 18 | 15 | 6 |
| border-image.stretch | 16 | 12 | 15 | 6 | 18 | 15 | 6 |