monks/overflow_wrap
The overflow-wrap CSS property applies to text, setting whether the browser should insert line breaks within an otherwise unbreakable string to prevent text from overflowing its line box.
The property was originally a nonstandard and unprefixed Microsoft extension called
word-wrap, and was implemented by most browsers with the same name. It has since been renamed tooverflow-wrap, withword-wrapbeing an alias.
Values
pub const anywhere: #(String, String)
- : To prevent overflow, an otherwise unbreakable string of characters — like a long word or URL — may be broken at any point if there are no otherwise-acceptable break points in the line. No hyphenation character is inserted at the break point. Soft wrap opportunities introduced by the word break are considered when calculating min-content intrinsic sizes.
pub const break_word: #(String, String)
- : The same as the
anywherevalue, with normally unbreakable words allowed to be broken at arbitrary points if there are no otherwise acceptable break points in the line, but soft wrap opportunities introduced by the word break are NOT considered when calculating min-content intrinsic sizes.
pub const normal: #(String, String)
- : Lines may only break at normal word break points (such as a space between two words).
pub const revert_layer: #(String, String)