Skip to content

box-decoration-break

Utilities for controlling how backgrounds, borders, and padding render across fragmented lines.

ISS preview
Iced + ISS preview demonstrating box-decoration-break
ISS preview for box-decoration-break
use iced::widget::text;
use iss::{tw, TwExt};
let badge = text("Multi-line highlight").tw(tw!("px-2 py-0.5 bg-blue-600 text-white box-decoration-clone"));
Tailwind Class CSS Property / Effect iss::typed Builder
box-decoration-clone box-decoration-break: clone; .box_decoration_clone()
box-decoration-slice box-decoration-break: slice; .box_decoration_slice()
  • box-decoration-clone paints padding, border, and background on every wrapped line fragment; slice treats them as one continuous box.

box-sizing · padding · background-image