coderef

box-decoration-breakLimited availability

The box-decoration-break CSS property sets whether box decorations, such as borders or backgrounds, of an element divided across a page, column, or region wraps each fragment or splits across the break.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–129Not supported
130+Supportedsince Oct 15, 2024
Current: 155
Edge
12–129Not supported
130+Supportedsince Oct 17, 2024
Current: 154
Firefox
1–31Not supported
32+Supportedsince Sep 2, 2014
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–129Not supported
130+Supportedsince Oct 15, 2024
Current: 155
Firefox Android
4–31Not supported
32+Supportedsince Sep 2, 2014
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: box-decoration-break.

Feature detection

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

/* or in JavaScript */
if (CSS.supports("box-decoration-break", "initial")) {
  // use it
}

Sub-features

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

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
box-decoration-break13013032✕13032✕
box-decoration-break.clone13013032✕13032✕
box-decoration-break.slice13013032✕13032✕