hyphenate-character-002.html (971B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text test: hyphenate-character</title> 4 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character"> 6 <link rel="match" href="reference/hyphenate-character-001-ref.html"> 7 <meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break"> 8 <style> 9 div { 10 font: 16px monospace; 11 width: 4.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */ 12 hyphens: auto; /* assuming the usual en_US patterns, should generate the same breaks as the manual 13 soft hyphens in test 001. */ 14 hyphenate-character: ""; 15 } 16 </style> 17 18 <p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>. 19 20 <div lang="en"> 21 implementation<br><br> 22 initialization<br><br> 23 realization<br><br> 24 hyphenation 25 </div>