1
0
Fork 0
firefox/testing/web-platform/tests/css/css-text/hyphens/hyphenate-character-002.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

25 lines
971 B
HTML

<!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-001-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: 4.5ch; /* wide enough that the first potential break in "re-al-iza-tion" should NOT be used */
hyphens: auto; /* assuming the usual en_US patterns, should generate the same breaks as the manual
soft hyphens in test 001. */
hyphenate-character: "";
}
</style>
<p>Test passes if the words below are broken at hyphenation positions but <b>no visible hyphens appear</b>.
<div lang="en">
implementation<br><br>
initialization<br><br>
realization<br><br>
hyphenation
</div>