CSS box-decoration-break Property

Description

The box-decoration-break property specifies When a break (page/column/region/line) splits a box, the property controls: 1. Whether the box's margins, borders, padding, and other decorations wrap the broken edges of the box fragments. 2. How the background positioning area is derived from the box fragments and how the element's background is drawn within them.

Initial value
slice
Applies to
All elements
Inherited
No
Media
Visual
Computed value
As specified
Animatable
No
CSS Version
CSS3
JavaScript syntax
object.style.boxDecorationBreak

Syntax

Formal syntax: slice | clone

box-decoration-break: slice;
box-decoration-break: clone;

Values

  • sliceNo border and no padding are inserted at a break; no box-shadow is drawn at a broken edge; border-radius does not apply to its corners; and backgrounds and the border-image are rendered for the whole box as if the box were unbroken.
  • cloneEach box fragment is independently wrapped with the border and padding. The border-radius and border-image and box-shadow, if any, are applied to each fragment independently. The background is drawn independently in each fragment of the element.

Example

.class {
   box-decoration-break: slice;
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XX22??6.1
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
≤3718??7.1Yes