Open Bug 1293584 Opened 3 years ago Updated 2 years ago

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


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

48 Branch




(Reporter: danny0838, Unassigned)


(Blocks 1 open bug)


(Keywords: css3)


(3 files)

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
Component: Untriaged → CSS Parsing and Computation
Ever confirmed: true
Product: Firefox → Core
See Also: → 249159
Severity: major → normal
Component: CSS Parsing and Computation → Layout: Text
Keywords: testcase
Severity: normal → major
Keywords: testcasecss3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.