word-break-keep-all-007.html (1297B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>CSS-Text test: word-break keep-all + pre-wrap 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. white-space:pre-wrap doesn't change that."> 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 <link rel=help href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> 10 <style> 11 div { 12 width: 4em; 13 word-break: keep-all; 14 white-space: pre-wrap; 15 } 16 </style> 17 18 <p>This test passes if the four characters below are arranged in a two-by-two square. 19 <div>字字 字字</div> 20 <!-- 21 If keep-all has no effect at all, breaks are allowed everywhere, 22 and the result will be: 23 字字 字 24 字 25 26 If keep-all correctly suppresses wrapping opportunities between CJK ideographs 27 but also incorrectly suppresses the wrapping opportunity after U+3000, 28 no wrapping is possible, and the result will be: 29 字字 字字 30 -->