Interactive online courses HTML Academy
2026-03-09 12:29 Diff

The round value for the border-image-repeat property also determines the pattern by which the border of the frame will be filled with repeating side image sections. But, unlike repeat, if a certain whole number of repeating pieces cannot fit within the width of the border, the outer parts will still not be cut off. The pieces are evenly stretched so that they are all the same size and fill the remaining space in the border of the frame.

According to the specification, for a given value of space, the algorithm behaves similarly to round. However, the pieces of the image are not stretched to fill in the remaining space. Rather, they remain the same width, while additional free space is inserted between the pieces.

As of the time of writing of this section, the implementation of the space property is identical to the repeat property in modern browsers.

Let’s check the property values in practice.