word-break-keep-all-005.html (1139B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>CSS-Text test: word-break keep-all does not affect U+3000</title> 4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 5 <meta name=flags content=""> 6 <meta name=assert content="U+3000, despite being called Ideographic Space, does not belong to the ID line breaking class, or any other class whose wrapping opportunities are suppressed by word-break:keep-all. A break after it should still be allowed."> 7 <link rel="match" href="reference/word-break-keep-all-005-ref.html"> 8 <link rel=help href="https://drafts.csswg.org/css-text-3/#valdef-word-break-keep-all"> 9 <style> 10 div { 11 width: 4em; 12 word-break: keep-all; 13 } 14 </style> 15 16 <p>This test passes if the four characters below are arranged in a two-by-two square. 17 <div>字字 字字</div> 18 <!-- 19 If keep-all has no effect at all, breaks are allowed everywhere, 20 and the result will be: 21 字字 字 22 字 23 24 If keep-all correctly suppresses wrapping opportunities between CJK ideographs 25 but also incorrectly suppresses the wrapping opportunity after U+3000, 26 no wrapping is possible, and the result will be: 27 字字 字字 28 -->