The overflow-wrap CSS property specifies whether the user agent may break at otherwise disallowed points within a line to prevent overflow, when an otherwise-unbreakable string is too long to fit within the line box.
object.style.overflowWrap = "value";
<'overflow-wrap'> = normal | break-word | anywhere
Lines may break only at allowed break points.
As for anywhere except soft wrap opportunities introduced by break-word are not considered when calculating min-content intrinsic sizes.
An otherwise unbreakable sequence of characters may be broken at an arbitrary point if there are no otherwise-acceptable break points in the line.