Status: Unconfirmed
Owner: ----
Labels: Area-Compat Type-Bug Pri-2
New issue 141792 by
cschu...@mocap.com: "word-break:keep-all" not supported
(for control of word-wrapping in CJK text)
http://code.google.com/p/chromium/issues/detail?id=141792
Chrome Version : 21.0.1180.57
URL :
http://www.mocap.com.cn/mocap-all-products.html
Safari 5:FAIL
Firefox 14:FAIL
Firefox 15:OK
IE 7/8/9:OK
What steps will reproduce the problem?
1. Apply "word-break: keep-all" to a fix-width element which contains CJK
(Chinese, Japanese, Korean) characters.
What is the expected result?
When "word-break:keep-all" is applied to an element, word-wrapping should
not occur between CJK characters, but only at spaces (including zero-width
spaces) and any other non-CJK characters (punctuation, wbr tags, br tags,
etc). This allows CJK text to line-break in a manner similar to western
text (wrapping occurs only on spaces & punctuation)
What happens instead?
word-wrapping occurs between any two CJK characters (normal behavior).
"word-break:keep-all" was a proprietary Microsoft setting that has existed
in IE since IE5, but which has recently made its way into CSS3 drafts.
CSS Text Level 3 - W3C Working Draft 12 April 2011
http://www.w3.org/TR/2011/WD-css3-text-20110412/#word-break
CSS Text Level 3 - W3C Working Draft 19 January 2012
http://www.w3.org/TR/css3-text/#word-break
CSS Text Level 3 - W3C Working Draft 9 August 2012
http://dev.w3.org/csswg/css3-text/#word-break
Support for "word-break:keep-all" will also be include in Firefox 15, due
to be release later in August 2012.
Chrome supports "word-break:normal" and "word-break:break-all", but
not "word-break:keep-all".
Without "word-break:keep-all", word-wrapping occurs between any two block
CJK characters. This setting allows you to control where breaks are allowed
to occur. The reason for wanting to do this is to prevent two characters
which make up phrase from being split up, for reasons of clarity, and for
aesthetic reasons -- A single character dangling below a complete line
looks "odd" (or so I'm told by my company's Chinese staff).
My original solution was to use "white-space:nowrap" and intersperse the
text with <wbr> tags. But this is an "ugly" solution, due to all thos
unsightly wbr the tags which have to added inline with the text. And, as
usual, this method works in every browser except one ... it fails in IE
(IE9 ignores wbr tags). This is particularly troublesome given IE's
dominance inside China.
I've attached an image showing Firefox15 correctly
supporting "word-break:keep-all", and the same section of text in chrome21
which ignores the property completely.
Attachments:
word-break_keep-all.png 119 KB