Closed Bug 1358019 Opened 3 years ago Closed 8 months ago
word-break: break-all shouldn't create breaks between punctuation
'word-break: break-all' is not supposed to affect breaking between/around punctuation, only between pairs of letters (or symbols that behave like letters for line breaking). Testcase: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20style%3D%22word-break%3A%20break-all%20%3B%20font-size%3A%20200px%22%3EABC)%3C%2Fdiv%3E Spec: https://www.w3.org/TR/css-text-3/#break-all “In addition to ‘normal’ soft wrap opportunities, lines may break between any two **letters** (except where forbidden by the ‘line-break’ property). Hyphenation is not applied. This option is used mostly in a context where the text is predominantly using CJK characters with few non-CJK excerpts and it is desired that the text be better distributed on each line.”
See Also: → https://github.com/w3c/csswg-drafts/issues/785
Copying over metadata from duplicate bug 1472598. Xidorn points out that we might want to implement `line-break: anywhere` as part of this, to make sure that the use case has a solution.
Probably related to Bug 1272059 Using the test case http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20style%3D%22word-break%3A%20break-all%20%3B%20font-size%3A%20200px%22%3EABC)%3C%2Fdiv%3E Firefox, Safari: They break at the punctuation. Chrome: It breaks at the character before the punctuation.
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/a93501fc7922 Reimplement word-break:break-all to better match the CSS Text spec. r=masayuki
Assignee: nobody → jfkthame
You need to log in before you can comment on or make changes to this bug.