summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/hyphens/hyphenate-character-003.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-text/hyphens/hyphenate-character-003.html')
-rw-r--r--testing/web-platform/tests/css/css-text/hyphens/hyphenate-character-003.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/hyphens/hyphenate-character-003.html b/testing/web-platform/tests/css/css-text/hyphens/hyphenate-character-003.html
new file mode 100644
index 0000000000..574f4d37b4
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/hyphens/hyphenate-character-003.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text test: hyphenate-character</title>
+<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
+<link rel="help" href="https://drafts.csswg.org/css-text-4/#hyphenate-character">
+<link rel="match" href="reference/hyphenate-character-003-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: 5.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */
+ hyphens: manual;
+ hyphenate-character: "\2022";
+}
+</style>
+
+<p>Test passes if the words below are hyphenated <b>using a bullet (&#x2022;) character</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>