word-break-auto-phrase-fallback-003.html (849B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 4 Test: word-break:auto-phrase untagged</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="match" href="reference/word-break-auto-phrase-fallback-003-ref.html"> 7 <meta name="assert" content="word-break:auto-phrase, if supported, does not affect (i.e. same as normal) content not language tagged."> 8 <style> 9 div { 10 font-size: 2em; 11 border: solid blue; 12 margin: 5px; 13 width: min-content; /* not 0, otherwise it would trigger the overflow fallback behavior */ 14 } 15 #test { 16 word-break: auto-phrase; 17 } 18 </style> 19 20 <p>Test passes if the two boxes below are identical. 21 22 <div id=test>東京へ行きましょう。</div> 23 <div id=ref>東京へ行きましょう。</div>