- From: Koji Ishii via GitHub <sysbot+gh@w3.org>
- Date: Wed, 05 Jul 2023 06:19:25 +0000
- To: public-css-archive@w3.org
kojiishi has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-text] Phrase line breaking should fallback to normal line breaking if overflow == We've got a feedback that when a phrase can't fit in a line, it should fallback to normal line breaking. For example: ```html <div style="width: 5em">こんにちは。</em> ``` This line overflows when the phrase engine computes "こんにちは" as a phrase. Authors can prevent the overflow by: ```css div { word-break: phrase; /* the keyword TBD */ overflow-wrap: anywhere; } ``` but this produces: ``` こんにちは 。 ``` which breaks the Japanese line breaking rules not to break before the fullwidth period. From authors' point of view, this should break as below instead: ``` こんにち は。 ``` Since the exact algorithm to determine the phrase boundaries is UA-dependent, this could be either part of the spec or part of the UA's algorithm, whichever works for me but wanted to share the feedback. @litherum @frivoal @fantasai Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9033 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 5 July 2023 06:19:27 UTC