Created attachment 368546 [details] Test case to reproduce the issue What steps will reproduce the problem? (1) Load the attached test case What is the expected result? The line is broken before the last non-punctuation character "XX XX|X..." (see expected.png) What happens instead? The line is broken in the middle of the sequence of punctuation characters "XX XXX..|." (see actual.png)
Created attachment 368547 [details] Test case to reproduce the issue
Created attachment 368548 [details] Actual result
Created attachment 368549 [details] Expected result
According to the CSS Text 3 specification, the word-break property should now allow breaking opportunities around punctuation characters: https://drafts.csswg.org/css-text-3/#propdef-word-break " It does not affect rules governing the soft wrap opportunities created by spaces (including U+3000 IDEOGRAPHIC SPACE) and around punctuation. (See line-break for controls affecting punctuation and small kana.) " The expected behavior described in this bug is what both Chrome and Firefox implement now, so this is clearly an interoperability issue of WebKit.
Created attachment 368550 [details] Test case to reproduce the issue
Created attachment 368551 [details] Test case to reproduce the issue
It seems Firefox has the same behavior as Safari in this case, while Edge behave like Chrome. Anyway, I think the spec is clear about this, so I consider the bug report is still valid.
I think Firefox has a similar bug report already: https://bugzilla.mozilla.org/show_bug.cgi?id=1280786
These other bug looks like related as well: https://bugzilla.mozilla.org/show_bug.cgi?id=628825
I think this is the same issue as https://bugs.webkit.org/show_bug.cgi?id=108347
This has been fixed by r288070 allowing LFC integration to work with the complex text path. *** This bug has been marked as a duplicate of bug 235266 ***