The line-break CSS property specifies the strictness of line-breaking rules applied within an element: especially how wrapping interacts with punctuation and symbols.
object.style.lineBreak = "value";
<'line-break'> = auto | loose | normal | strict | anywhere
Automatically specified by the user agent.
Breaks text using the least restrictive set of line-breaking rules.
Breaks text using the most common set of line-breaking rules.
Breaks text using the most stringent set of line-breaking rules.
There is a soft wrap opportunity around every typographic character unit, including around any punctuation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks, even those introduced by characters with the GL, WJ, or ZWJ character class or mandated by the word-break property. The different wrapping opportunities must not be prioritized. Hyphenation is not applied.
© 2021 Osbo Design