Where a line may end inside a run of text follows the Unicode line breaking algorithm (UAX #14). Kana and ideographs break between characters; word-break: keep-all keeps them together and break-all also breaks between Latin letters.
テキストキストテストスキストテ
テキストキスト テストスキスト
Chargoggagoggmanchaugg 2024
line-break sets how strictly characters that should not start a line are kept off it: strict and normal keep a small kana (ッ) with the character before it, loose lets it start a line, and anywhere allows a break after every character.
テキストッテキストッテキストッテキ
テキストッテキストッテキストッテキ
Chargoggagoggmanchaugg 2024