Summarized test results:
CSS3 Text, word-break

Intended audience: users, XHTML/HTML coders (using editors or scripting), script developers (PHP, JSP, etc.), CSS coders, Web project managers, and anyone who wants to know whether the CSS property word-break works as specified.

Updated

These tests check whether user agents correctly apply word-break to various writing systems per the CSS-text-3 spec.

Results

To see the test, click on the link in the left-most column. To see detailed results for a single test, click on the link in the Details column and look just above the table.

The detailed results show the date(s) the test result was recorded, and the version of the browser tested. Notes below the table will usually provide any additional useful information, including an explanation of why a result was marked as 'partially successful'.

Note that these test results are for released versions of the browsers tested. Versions that are still in development may provide better support for these features. The tests do not use any vendor prefixes.


word-break: normal

For word-break:normal the CSS spec mostly just says that the 'customary rules' should be applied, without further detail. More detailed rules may be added to the spec as the information becomes available (initiatives such as the layout requirements and digital publishing work may provide such details, amongst others). For the time being, these tests check browser behavior for just the obvious characteristics pertaining to several major writing systems. As more information becomes available, additional tests may be added.

Some specific behaviors for CJK script, in particular, are covered by line break tests elsewhere. See the word-break: break-all section for tests related to typographic units that are only exposed when partial words are wrapped, such as indic conjuncts.

Test link Assertion Detail
normal, latin
word-break-normal-en-000.html
word-break: normal means words break according to their customary rules.
normal, arabic
word-break-normal-ar-000.html
word-break: normal means words break according to their customary rules.
normal, tibetan
word-break-normal-bo-000.html
word-break: normal means words break according to their customary rules.
normal, hindi
word-break-normal-hi-000.html
word-break: normal means words break according to their customary rules.
normal, japanese
word-break-normal-ja-000.html
word-break: normal means words break according to their customary rules.
normal, japanese hiragana
word-break-normal-ja-001.html
word-break: normal means words break according to their customary rules.
normal, japanese katakana
word-break-normal-ja-002.html
word-break: normal means words break according to their customary rules.
normal, japanese
word-break-normal-ja-004.html
word-break: normal means words break according to their customary rules.
normal, khmer
word-break-normal-km-000.html
word-break: normal means words break according to their customary rules.
normal, korean
word-break-normal-ko-000.html
word-break: normal means words break according to their customary rules. Korean, which commonly exhibits two different behaviors, allows breaks between any two consecutive Hangul/Hanja.
normal, lao
word-break-normal-lo-000.html
word-break: normal means words break according to their customary rules.
normal, myanmar
word-break-normal-my-000.html
word-break: normal means words break according to their customary rules.
normal, tai nüa
word-break-normal-tdd-000.html
word-break: normal means words break according to their customary rules.
normal, thai
word-break-normal-th-000.html
word-break: normal means words break according to their customary rules.
normal, chinese
word-break-normal-zh-000.html
word-break: normal means words break according to their customary rules.
normal, zwsp
word-break-normal-001.html
word-break: normal means words break according to their customary rules. A ZWSP character should provide a break point.

word-break: break-all

Test link Assertion Detail
break-all, japanese
word-break-break-all-000.html
word-break: break-all means lines may break between any two typographic letter units.
break-all, latin
word-break-break-all-001.html
word-break: break-all means lines may break between any two typographic letter units.
break-all, korean
word-break-break-all-002.html
word-break: break-all means lines may break between any two typographic letter units.
break-all, thai
word-break-break-all-003.html
word-break: break-all means lines may break between any two typographic letter units.
break-all, arabic
word-break-break-all-004.html
word-break: break-all means lines may break between any two typographic letter units. When shaping scripts such as Arabic are allowed to break within words due to break-all, the characters must still be shaped as if the word were not broken.
break-all, subjoined tibetan
word-break-break-all-005.html
word-break: break-all means lines may break between any two typographic letter units.
break-all, spacing vowel sign
word-break-break-all-006.html
word-break: break-all means lines may break between any two typographic letter units. A spacing vowel sign should be wrapped to the next line with its base character.
break-all, combining diacritic
word-break-break-all-007.html
word-break: break-all means lines may break between any two typographic letter units. An combining diacritic plus base character should be wrapped as a unit to the next line.
break-all, syllabic cluster
word-break-break-all-008.html
[Exploratory test] word-break: break-all means lines may break between any two typographic letter units. An indic syllable cluster should be wrapped as a unit to the next line.

Notes

  1. word-break-break-all-004: This test is exploratory because indic conjuncts containing more than one consonant are not covered by the extended grapheme cluster definition, and therefore constitute more than one typographic unit, per the definition in the CSS spec. Nevertheless, people using indic scripts expect the user agent to keep the orthographic syllable as a single unit.
  2. word-break-break-all-008, Safari 8.0.3, Opera 27.0: These two browsers split the word in the correct place, but didn't leave a left-joining glyph at the end of the first line or a right-joining glyph at the start of the second.

word-break: keep-all

Test link Assertion Detail
keep-all, latin
word-break-keep-all-000.html
word-break: keep-all means breaking is forbidden within 'words'.
keep-all, japanese
word-break-keep-all-001.html
word-break: keep-all means breaking is forbidden within 'words'. In this style, sequences of CJK characters do not break.
keep-all, korean
word-break-keep-all-002.html
word-break: keep-all means breaking is forbidden within 'words'. In this style, sequences of CJK characters do not break.
keep-all, thai
word-break-keep-all-003.html
word-break: keep-all means breaking is forbidden within 'words', except where opportunities exist due to dictionary-based breaking (such as in Thai).