The border-image-repeat property controls how the edge slices of a border-image fill each side: stretch them, tile them, scale tiles to fit (round), or leave gaps between tiles (space).
It only affects a painted border image. You need a source and a slice first. The middle area of the box is filled only when border-image-slice includes fill.
Baseline · Widely available.
Not deprecated and not experimental. Available across browsers since March 2016. The space keyword landed later in some engines (Chrome 56+, Firefox 50+).
Bottom line: Safe for stretch, repeat, and round in current browsers. Prefer stretch or round when you need the widest reach; test space in older Chromium and Firefox. It is not a runtime API.
Remember
Key Takeaways
Role: how border-image edge slices fill each side — stretch, tile, round, or space.
Default:stretch. Not inherited.
repeat vs round: clip partial tiles vs scale tiles to fit whole.
Two values: first = top/middle/bottom; second = left/right.
One line:border-image-repeat decides how edge slices fill the sides — after you have a border image to tile or stretch.
Frequently Asked Questions
It controls how the edge slices of a border image fill each side: stretch to fit, tile with clipping, tile with scaling (round), or tile with gaps (space).
The initial value is stretch. Edge regions scale to fill the full length of each side.
repeat tiles the edge and may clip a partial tile at the end. round also tiles, but scales the tiles so a whole number of them fits with no clipping.
Yes. With two values, the first applies to the top, middle, and bottom; the second applies to the left and right.
You need a border image first (border-image or source plus slice) and a non-zero border width. Without an image, there are no edge tiles to stretch or repeat.
It is Baseline Widely available. stretch and repeat work from Chrome 15, Firefox 15, and Safari 6. round needs Chrome 30+ and Safari 9.1+. space needs Chrome 56+, Firefox 50+, and Safari 9.1+. It is a browser CSS property, not a Node.js feature.