word-break-auto-phrase-fallback-002.html (927B)
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-002-ref.html"> 7 <meta name="assert" content="word-break:auto-phrase, if supported, does the same as normal (insert soft wraps for south east asian) on 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, to avoid falling into overflow fallback behavior */ 14 word-break: normal; 15 } 16 #test { 17 word-break: auto-phrase; 18 } 19 </style> 20 21 <p>Test passes if the two boxes below are identical. 22 23 <div id=test>กรุงเทพคือสวยงาม</div> 24 <div id=ref>กรุงเทพคือสวยงาม</div>