Skip to content

Commit

Permalink
Add hyphenatin example for cree
Browse files Browse the repository at this point in the history
  • Loading branch information
frivoal committed Oct 13, 2023
1 parent 5bd62ed commit 289875b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
23 changes: 23 additions & 0 deletions css/css-text/hyphens/i18n/hyphens-i18n-auto-006.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: language specific hyphenation—Dutch</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#hyphens-property">
<link rel="match" href="reference/hyphens-i18n-auto-006-ref.html">
<meta name="assert" content="Depending on the language, the hyphenation character may vary.">
<style>
div {
font-size: 3em;
color: orange;
}
.test {
width: 6ch;
hyphens: auto;
color: blue;
}
</style>

<p>Test passes if the blue text is identical to the orange text.
<div lang=cr class=test>ᑲᓯᑕᓂᐘᓂᓂᐠ</div>
<hr>
<div lang=cr>ᑲᓯᑕᓂ᐀<br>ᐘᓂᓂᐠ</div>
21 changes: 21 additions & 0 deletions css/css-text/hyphens/i18n/reference/hyphens-i18n-auto-006-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: language specific hyphenation—Dutch</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#hyphens-property">
<link rel="match" href="reference/hyphens-i18n-auto-007-ref.html">
<meta name="assert" content="Language specific rules must be taken into account">
<style>
div {
font-size: 3em;
color: orange;
}
.test {
color: blue;
}
</style>

<p>Test passes if the blue text is identical to the orange text.
<div lang=cr class=test>ᑲᓯᑕᓂ᐀<br>ᐘᓂᓂᐠ</div>
<hr>
<div lang=cr>ᑲᓯᑕᓂ᐀<br>ᐘᓂᓂᐠ</div>

0 comments on commit 289875b

Please sign in to comment.