Closed Bug 1293584 Opened 8 years ago Closed 5 years ago

CSS "word-break: keep-all;" fails to break the text at CJK punctuations

Categories

(Core :: Layout: Text and Fonts, defect, P3)

48 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: danny0838, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

(Keywords: css3)

Attachments

(4 files)

Attached file The reduced demo of this issue (deleted) —
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0 Build ID: 20160726073904 Steps to reproduce: See the attachment issue_demo.html. According to CSS3 spec, a CJK punctuation char, such as ",", "。", etc, should be a candidate for word break when "word-break: keep-all;" is declared. Both IE and Chrome implement "word-break: keep-all;" in this way, but Firefox does not. Actual results: The text is never wrapped at a CJK punctuation such as ",", "。", etc. Expected results: The text should be wrapped at a CJK punctuation, such as ",", "。", etc, if it exceeds the element width.
Summary: CSS "word-break: keep-all;" fails to break at CJK punctuations → CSS "word-break: keep-all;" fails to break the text at CJK punctuations
Attachment #8779227 - Attachment description: Expected behavior: text breakable at CJK punctuatons → Expected behavior: text wrappable at CJK punctuatons
Attachment #8779228 - Attachment description: Actual behavior: text not breakable at CJK punctuatons → Actual behavior: text not wrappable at CJK punctuatons
Severity: normal → major
work-break was added by bug 249159 。 (U+3002) is mentioned bug 249159 comment #40
Status: UNCONFIRMED → NEW
Component: Untriaged → CSS Parsing and Computation
Ever confirmed: true
Product: Firefox → Core
Severity: major → normal
Component: CSS Parsing and Computation → Layout: Text
Keywords: testcase
Severity: normal → major
Keywords: testcasecss3
Priority: -- → P3
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cf48dfafa73c Fix implementation of word-break:keep-all to better follow the spec. r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: