monks/word_break
The word-break CSS property sets whether line breaks appear wherever the text would otherwise overflow its content box.
Values
pub const auto_phrase: #(String, String)
- : Has the same effect as
word-break: normalexcept that language-specific analysis is performed to improve word breaks by not placing them in the middle of natural phrases.
pub const break_all: #(String, String)
- : To prevent overflow, word breaks should be inserted between any two characters (excluding Chinese/Japanese/Korean text).
pub const break_word: #(String, String)
- : Has the same effect as
overflow-wrap: anywherecombined withword-break: normal, regardless of the actual value of the {{cssxref(“overflow-wrap”)}} property.> [!NOTE]> In contrast toword-break: break-wordandoverflow-wrap: break-word(see {{cssxref(“overflow-wrap”)}}),word-break: break-allwill create a break at the exact place where text would otherwise overflow its container (even if putting an entire word on its own line would negate the need for a break).The specification also lists an additional value,manual, which is not currently supported in any browsers. When implemented,manualwill have the same effect asword-break: normalexcept that breaks won’t be automatically inserted in Southeast Asian languages. This is needed because, in such languages, user agents frequently place breaks in suboptimal positions.manualwill allow you to insert line breaks in optimal positions manually.
pub const keep_all: #(String, String)
- : Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for
normal.
pub const revert_layer: #(String, String)