RESOLVED DUPLICATE of bug 235266 197409
[css-text] word-break: break-all should not allow breaking around punctuation characters
https://bugs.webkit.org/show_bug.cgi?id=197409
Summary [css-text] word-break: break-all should not allow breaking around punctuation...
Javier Fernandez
Reported 2019-04-30 02:53:10 PDT
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)
Attachments
Test case to reproduce the issue (216 bytes, text/html)
2019-04-30 02:53 PDT, Javier Fernandez
no flags
Test case to reproduce the issue (208 bytes, text/html)
2019-04-30 02:55 PDT, Javier Fernandez
no flags
Actual result (966 bytes, image/png)
2019-04-30 02:57 PDT, Javier Fernandez
no flags
Expected result (974 bytes, image/png)
2019-04-30 02:57 PDT, Javier Fernandez
no flags
Test case to reproduce the issue (204 bytes, text/html)
2019-04-30 03:03 PDT, Javier Fernandez
no flags
Test case to reproduce the issue (162 bytes, text/html)
2019-04-30 03:06 PDT, Javier Fernandez
no flags
Javier Fernandez
Comment 1 2019-04-30 02:55:01 PDT
Created attachment 368547 [details] Test case to reproduce the issue
Javier Fernandez
Comment 2 2019-04-30 02:57:35 PDT
Created attachment 368548 [details] Actual result
Javier Fernandez
Comment 3 2019-04-30 02:57:56 PDT
Created attachment 368549 [details] Expected result
Javier Fernandez
Comment 4 2019-04-30 03:01:16 PDT
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.
Javier Fernandez
Comment 5 2019-04-30 03:03:02 PDT
Created attachment 368550 [details] Test case to reproduce the issue
Javier Fernandez
Comment 6 2019-04-30 03:06:45 PDT
Created attachment 368551 [details] Test case to reproduce the issue
Javier Fernandez
Comment 7 2019-04-30 03:11:36 PDT
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.
Javier Fernandez
Comment 8 2019-04-30 03:25:02 PDT
I think Firefox has a similar bug report already: https://bugzilla.mozilla.org/show_bug.cgi?id=1280786
Javier Fernandez
Comment 9 2019-04-30 03:29:20 PDT
These other bug looks like related as well: https://bugzilla.mozilla.org/show_bug.cgi?id=628825
Florian Rivoal
Comment 10 2020-01-17 00:09:15 PST
I think this is the same issue as https://bugs.webkit.org/show_bug.cgi?id=108347
Arcady Goldmints-Orlov
Comment 11 2022-01-17 09:44:47 PST
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 ***
Note You need to log in before you can comment on or make changes to this bug.