word-break-auto-phrase-004.html (997B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 4 Test: word-break: auto-phrase- forbidden</title> 4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-4/#word-break-property"> 6 <link rel="help" href="https://drafts.csswg.org/css-text-4/#word-phrase-detection"> 7 <link rel="match" href="reference/word-break-auto-phrase-004-ref.html"> 8 <meta name="assert" content="The UA must not insert a virtual word boundary between a typographic letter unit and an adjacent typographic character unit from the [UAX14] WJ line breaking class"> 9 <style> 10 div { 11 font-size: 2em; 12 border: solid black; 13 margin: 5px; 14 width: min-content; 15 } 16 #test { 17 word-break: auto-phrase; 18 } 19 #ref { 20 word-break: keep-all; 21 } 22 </style> 23 24 <p>Test passes if the two boxes below are identical. 25 26 <div id=test lang=ja>東京⁠へ⁠行きましょう。</div> 27 <div id=ref lang=ja>東京⁠へ⁠行きましょう。</div>