box-decoration-break
Limited availability97% of users
Controls how an element's fragments (like when a line of text wraps or breaks across pages) are styled. 'Clone' repeats the padding and borders on every fragment, while 'slice' cuts them off.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
slice- Inherited
- No
- Applies to
- all elements
- Animation type
- discrete
Quick example
span.highlight {
background: linear-gradient(to right, #7c3aed, #ec4899);
padding: 0.2rem 0.5rem;
border-radius: 4px;
/* standard 'slice' (default) cuts borders/padding at line breaks */
/* 'clone' ensures every line fragment gets the background and padding */
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
}Values
sliceclonebox-decoration-break browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage97%of people can use this3% use a browser without it.
Browsers
130+
32+
130+Mobile
130+Android
32+Android
Interop 2027 candidate. Tracked for Interop 2027. Official focus areas publish early 2027; proposals are open through September 2026. See Interop 2027 →