Support box-decoration-break:clone both for inline fragmentation (line layout) and block fragmentation (pagination for printing, multicol). Traditionally in Blink, only box-decoration-break:slice (the initial value) has been supported for block fragmentation, whereas for inline fragmentation, box-decoration-break:clone was also supported, but only when using the prefixed -webkit-box-decoration-break property. See https://drafts.csswg.org/css-break/#break-decoration
The box-decoration-break: clone CSS property is a useful feature because it addresses a common issue with how box decorations (backgrounds, borders, padding, etc.) are handled when an element is broken across multiple lines, columns, or pages. By default, when an element is broken into fragments, its box decorations are treated as if they belong to the original, unbroken element. This means: Backgrounds might be cut off or appear incomplete on the fragments. Borders might not wrap around each fragment individually. Padding might not be applied consistently across fragments. This can lead to visual inconsistencies and unexpected layouts, especially when dealing with complex or dynamic content. box-decoration-break: clone changes this behavior by treating each fragment of a broken element as if it were its own independent element. This means: Backgrounds are applied to each fragment in full, ensuring a consistent appearance. Borders wrap around each fragment individually, creating a more visually appealing and intuitive layout. Padding is applied to each fragment as if it were a separate element, maintaining consistent spacing.
Low.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
DevTrial on desktop | 128 |
DevTrial on Android | 128 |