Re: [csswg-drafts] [css-text-3] word-break: break-all doesn't break before sentence-ending punctuation if UAX #14 is used

Actually, I think there is another solution to this problem, which does not need anything new to be added to the spec.
```
white-space: pre;
overflow-wrap: break-word;
```
or depending on how you feel about breaks in consecutive runs of spaces maybe
```
white-space: pre;
overflow-wrap: break-word break-spaces;
```
That way, the fact that `overflow-wrap:break-word` only applies if there's no other break point is countered by the fact that `white-space:pre` has cancelled other break points.

So you would get
```
|foo bar baz.|
|............|
|...         |
```

@littledan, would this solve your problem, or does it have undesirable side effects?




-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1171#issuecomment-293761260 using your GitHub account

Received on Thursday, 13 April 2017 02:38:51 UTC