blob: 36ce9263bd85c686711141854bd87bbb42d16a20 [file] [log] [blame] [edit]
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text test: hyphenate-character</title>
<link rel="author" title="Jonathan Kew" href="mailto:[email protected]">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
<link rel="match" href="reference/hyphenate-character-004-ref.html">
<meta name="assert" content="Specifies the string that appears at the end of the line before a hyphenation break">
<style>
div {
font: 16px monospace;
width: 6.5ch; /* wide enough that the last potential break in "im-ple-men-ta-tion" should NOT be used */
hyphens: manual;
hyphenate-character: "/-/";
}
</style>
<p>Test passes if the words below are hyphenated <b>using the string "/-/"</b>.
<div lang="en">
im&shy;ple&shy;men&shy;ta&shy;tion<br><br>
ini&shy;tial&shy;iza&shy;tion<br><br>
re&shy;al&shy;iza&shy;tion<br><br>
hy&shy;phen&shy;ation
</div>