Skip to content

Commit 9bd362f

Browse files
committed
[css-text] Switch word-break: break-all to use UAX14 notion of “letter”, and treat them all as ideographic.
1 parent 1b8f936 commit 9bd362f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

css-text/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,9 +1006,12 @@ Line Breaking Details</h3>
10061006

10071007
<dt><dfn>break-all</dfn></dt>
10081008
<dd>Breaking is allowed within “words”:
1009-
in addition to ''word-break/normal'' <a>soft wrap opportunities</a>,
1010-
lines may break between any two <a>typographic letter units</a>
1011-
(except where forbidden by the 'line-break' property).
1009+
in addition to ''word-break/normal'' <a>soft wrap opportunities</a>:
1010+
specifically, any <a>typographic character units</a> resolving to the
1011+
<code>NU</code> (“numeric”), <code>AL</code> (“alphabetic”), or <code>SA</code> (“Southeast Asian”)
1012+
line breaking classes [[!UAX14]]
1013+
are instead treated as <code>ID</code> (“ideographic characters”)
1014+
for the purpose of line-breaking.
10121015
Hyphenation is not applied. This option is used mostly in a context where
10131016
the text consists predominantly of CJK characters with only short non-CJK excerpts,
10141017
and it is desired that the text be better distributed on each line.</dd>
@@ -2744,6 +2747,8 @@ Changes</h2>
27442747
<li>Made 'text-align' a shorthand of 'text-align-last' and the new 'text-align-all' property.
27452748
<li>Removed dependence of 'text-align-last' on ''text-align: justify'',
27462749
since the problem it solves is now solved by the shorthanding relationship.
2750+
<li>For ''word-break: break-all'', switched to UAX14 notion of “letters”,
2751+
since that handles symbols better.
27472752
</ul>
27482753

27492754
<h3 class="no-num" id="changes-2013">

0 commit comments

Comments
 (0)