The box-decoration-break
property in
box-decoration-break: slice|clone|initial|inherit|unset;
slice
: This is the default value. As a whole, it breaks the edges of the fragment elements.
clone
: This is used to define the properties of each fragment independently. Backgrounds for each fragment are redrawn.
initial
: This is used to set the value to its default value.
inherit
: This is used to inherit property from its parent value.
The following is the basic box-decoration-break
property.
In this example, we set the properties of the box, i.e., how each box should look like. We maintained the theme, style, and color of each box so that they are identical. However, we could also change the theme, style, and color of each box separately.