1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: text-transform - fullwidth - basic cases</title>
5 <link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp">
6 <link rel="reviewer" title="Koji Ishii" href="mailto:kojiishi@gluesoft.co.jp">
7 <link rel="help" title="CSS Text Level 3: 3.1. Transforming Text: the ‘text-transform’ property" href="http://www.w3.org/TR/css-text-3/#text-transform">
8 <link rel="match" href="reference/text-transform-fullwidth-001-ref.htm">
9 <meta name="flags" content="">
10 <meta name="assert" content="The UA should transform halfwidth character to fullwidth character when text-transform is set to fullwidth.">
11 <style type="text/css">
12
13 .test span {
14 text-transform: full-width;
15 }
16 /* the CSS below is not part of the test */
17 span {
18 background-color: cyan;
19 }
20 .test {
21 color: Blue;
22 font-size: 200%;
23 line-height: 1.2em;
24 }
25 .test div {
26 display: inline-block;
27 margin-bottom: 1em;
28 margin-top: 1em;
29 text-align: center;
30 white-space: nowrap;
31 width: 5em;
32 }
33
34 </style>
35 <script type="text/javascript">
36 //
37 // Set Font Family to 'IPAMincho'
38 function setFontFamily () {
39 var fontName = 'IPAMincho';
40 var divs = document.getElementsByTagName('div');
41 var i = 0;
42 var div;
43 while (i < divs.length) {
44 div = divs.item(i);
45 if (div.className == 'test') {
46 div.style.fontFamily = fontName;
47 }
48 i++;
49 }
50 }
51 //
52 </script>
53 </head>
54 <body>
55 <p>
56 Test passes if the upper character in each pair matches the lower one in both shape <strong>and size</strong>.
57 </p>
58 <div class="test">
59
60 <!-- FULLWIDTH LATIN -->
61 <div>[<span> </span>]<br>[<span> </span>]</div>
62 <div><span>!</span><br><span>!</span></div>
63 <div><span>”</span><br><span>"</span></div>
64 <div><span>#</span><br><span>#</span></div>
65 <div><span>$</span><br><span>$</span></div>
66 <div><span>%</span><br><span>%</span></div>
67 <div><span>&</span><br><span>&</span></div>
68 <div><span>’</span><br><span>'</span></div>
69 <div><span>(</span><br><span>(</span></div>
70 <div><span>)</span><br><span>)</span></div>
71 <div><span>*</span><br><span>*</span></div>
72 <div><span>+</span><br><span>+</span></div>
73 <div><span>,</span><br><span>,</span></div>
74 <div><span>-</span><br><span>-</span></div>
75 <div><span>.</span><br><span>.</span></div>
76 <div><span>/</span><br><span>/</span></div>
77 <br>
78 <div><span>0</span><br><span>0</span></div>
79 <div><span>1</span><br><span>1</span></div>
80 <div><span>2</span><br><span>2</span></div>
81 <div><span>3</span><br><span>3</span></div>
82 <div><span>4</span><br><span>4</span></div>
83 <div><span>5</span><br><span>5</span></div>
84 <div><span>6</span><br><span>6</span></div>
85 <div><span>7</span><br><span>7</span></div>
86 <div><span>8</span><br><span>8</span></div>
87 <div><span>9</span><br><span>9</span></div>
88 <br>
89 <div><span>:</span><br><span>:</span></div>
90 <div><span>;</span><br><span>;</span></div>
91 <div><span><</span><br><span><</span></div>
92 <div><span>=</span><br><span>=</span></div>
93 <div><span>></span><br><span>></span></div>
94 <div><span>?</span><br><span>?</span></div>
95 <div><span>@</span><br><span>@</span></div>
96 <br>
97 <div><span>A</span><br><span>A</span></div>
98 <div><span>B</span><br><span>B</span></div>
99 <div><span>C</span><br><span>C</span></div>
100 <div><span>D</span><br><span>D</span></div>
101 <div><span>E</span><br><span>E</span></div>
102 <div><span>F</span><br><span>F</span></div>
103 <div><span>G</span><br><span>G</span></div>
104 <div><span>H</span><br><span>H</span></div>
105 <div><span>I</span><br><span>I</span></div>
106 <div><span>J</span><br><span>J</span></div>
107 <div><span>K</span><br><span>K</span></div>
108 <div><span>L</span><br><span>L</span></div>
109 <div><span>M</span><br><span>M</span></div>
110 <div><span>N</span><br><span>N</span></div>
111 <div><span>O</span><br><span>O</span></div>
112 <div><span>P</span><br><span>P</span></div>
113 <div><span>Q</span><br><span>Q</span></div>
114 <div><span>R</span><br><span>R</span></div>
115 <div><span>S</span><br><span>S</span></div>
116 <div><span>T</span><br><span>T</span></div>
117 <div><span>U</span><br><span>U</span></div>
118 <div><span>V</span><br><span>V</span></div>
119 <div><span>W</span><br><span>W</span></div>
120 <div><span>X</span><br><span>X</span></div>
121 <div><span>Y</span><br><span>Y</span></div>
122 <div><span>Z</span><br><span>Z</span></div>
123 <br>
124 <div><span>[</span><br><span>[</span></div>
125 <div><span>\</span><br><span>\</span></div>
126 <div><span>]</span><br><span>]</span></div>
127 <div><span>^</span><br><span>^</span></div>
128 <div><span>_</span><br><span>_</span></div>
129 <div><span>`</span><br><span>`</span></div>
130 <br>
131 <div><span>a</span><br><span>a</span></div>
132 <div><span>b</span><br><span>b</span></div>
133 <div><span>c</span><br><span>c</span></div>
134 <div><span>d</span><br><span>d</span></div>
135 <div><span>e</span><br><span>e</span></div>
136 <div><span>f</span><br><span>f</span></div>
137 <div><span>g</span><br><span>g</span></div>
138 <div><span>h</span><br><span>h</span></div>
139 <div><span>i</span><br><span>i</span></div>
140 <div><span>j</span><br><span>j</span></div>
141 <div><span>k</span><br><span>k</span></div>
142 <div><span>l</span><br><span>l</span></div>
143 <div><span>m</span><br><span>m</span></div>
144 <div><span>n</span><br><span>n</span></div>
145 <div><span>o</span><br><span>o</span></div>
146 <div><span>p</span><br><span>p</span></div>
147 <div><span>q</span><br><span>q</span></div>
148 <div><span>r</span><br><span>r</span></div>
149 <div><span>s</span><br><span>s</span></div>
150 <div><span>t</span><br><span>t</span></div>
151 <div><span>u</span><br><span>u</span></div>
152 <div><span>v</span><br><span>v</span></div>
153 <div><span>w</span><br><span>w</span></div>
154 <div><span>x</span><br><span>x</span></div>
155 <div><span>y</span><br><span>y</span></div>
156 <div><span>z</span><br><span>z</span></div>
157 <br>
158 <div><span>{</span><br><span>{</span></div>
159 <div><span>|</span><br><span>|</span></div>
160 <div><span>}</span><br><span>}</span></div>
161 <div><span>~</span><br><span>~</span></div>
162
163 <div><span>⦅</span><br><span>⦅</span></div> <!-- LEFT WHITE PARENTHESIS -->
164 <div><span>⦆</span><br><span>⦆</span></div> <!-- RIGHT WHITE PARENTHESIS -->
165
166 <!-- HALFWIDTH KATAKANA -->
167 <br>
168 <div><span>。</span><br><span>。</span></div>
169 <div><span>「</span><br><span>「</span></div>
170 <div><span>」</span><br><span>」</span></div>
171 <div><span>、</span><br><span>、</span></div>
172 <div><span>・</span><br><span>・</span></div>
173 <br>
174 <div><span>ヲ</span><br><span>ヲ</span></div>
175 <div><span>ァ</span><br><span>ァ</span></div>
176 <div><span>ィ</span><br><span>ィ</span></div>
177 <div><span>ゥ</span><br><span>ゥ</span></div>
178 <div><span>ェ</span><br><span>ェ</span></div>
179 <div><span>ォ</span><br><span>ォ</span></div>
180 <div><span>ャ</span><br><span>ャ</span></div>
181 <div><span>ュ</span><br><span>ュ</span></div>
182 <div><span>ョ</span><br><span>ョ</span></div>
183 <div><span>ッ</span><br><span>ッ</span></div>
184 <div><span>ー</span><br><span>ー</span></div>
185 <br>
186 <div><span>ア</span><br><span>ア</span></div>
187 <div><span>イ</span><br><span>イ</span></div>
188 <div><span>ウ</span><br><span>ウ</span></div>
189 <div><span>エ</span><br><span>エ</span></div>
190 <div><span>オ</span><br><span>オ</span></div>
191 <div><span>カ</span><br><span>カ</span></div>
192 <div><span>キ</span><br><span>キ</span></div>
193 <div><span>ク</span><br><span>ク</span></div>
194 <div><span>ケ</span><br><span>ケ</span></div>
195 <div><span>コ</span><br><span>コ</span></div>
196 <div><span>サ</span><br><span>サ</span></div>
197 <div><span>シ</span><br><span>シ</span></div>
198 <div><span>ス</span><br><span>ス</span></div>
199 <div><span>セ</span><br><span>セ</span></div>
200 <div><span>ソ</span><br><span>ソ</span></div>
201 <div><span>タ</span><br><span>タ</span></div>
202 <div><span>チ</span><br><span>チ</span></div>
203 <div><span>ツ</span><br><span>ツ</span></div>
204 <div><span>テ</span><br><span>テ</span></div>
205 <div><span>ト</span><br><span>ト</span></div>
206 <div><span>ナ</span><br><span>ナ</span></div>
207 <div><span>ニ</span><br><span>ニ</span></div>
208 <div><span>ヌ</span><br><span>ヌ</span></div>
209 <div><span>ネ</span><br><span>ネ</span></div>
210 <div><span>ノ</span><br><span>ノ</span></div>
211 <div><span>ハ</span><br><span>ハ</span></div>
212 <div><span>ヒ</span><br><span>ヒ</span></div>
213 <div><span>フ</span><br><span>フ</span></div>
214 <div><span>ヘ</span><br><span>ヘ</span></div>
215 <div><span>ホ</span><br><span>ホ</span></div>
216 <div><span>マ</span><br><span>マ</span></div>
217 <div><span>ミ</span><br><span>ミ</span></div>
218 <div><span>ム</span><br><span>ム</span></div>
219 <div><span>メ</span><br><span>メ</span></div>
220 <div><span>モ</span><br><span>モ</span></div>
221 <div><span>ヤ</span><br><span>ヤ</span></div>
222 <div><span>ユ</span><br><span>ユ</span></div>
223 <div><span>ヨ</span><br><span>ヨ</span></div>
224 <div><span>ラ</span><br><span>ラ</span></div>
225 <div><span>リ</span><br><span>リ</span></div>
226 <div><span>ル</span><br><span>ル</span></div>
227 <div><span>レ</span><br><span>レ</span></div>
228 <div><span>ロ</span><br><span>ロ</span></div>
229 <div><span>ワ</span><br><span>ワ</span></div>
230 <div><span>ン</span><br><span>ン</span></div>
231 <br>
232 <div><span>゛</span><br><span>゙</span></div>
233 <div><span>゜</span><br><span>゚</span></div>
234
235 <!-- HALFWIDTH HANGUL -->
236 <br>
237 <div>[<span>ᅟ</span>]<br>[<span>ᅠ</span>]</div> <!-- HANGUL FILLER -->
238 <div><span>ᆨ</span><br><span>ᄀ</span></div> <!-- HANGUL LETTER KIYEOK -->
239 <div><span>ᆩ</span><br><span>ᄁ</span></div> <!-- HANGUL LETTER SSANGKIYEOK -->
240 <div><span>ᆪ</span><br><span>ᆪ</span></div> <!-- HANGUL LETTER KIYEOK-SIOS -->
241 <div><span>ᆫ</span><br><span>ᄂ</span></div> <!-- HANGUL LETTER NIEUN -->
242 <div><span>ᆬ</span><br><span>ᆬ</span></div> <!-- HANGUL LETTER NIEUN-CIEUC -->
243 <div><span>ᆭ</span><br><span>ᆭ</span></div> <!-- HANGUL LETTER NIEUN-HIEUH -->
244 <div><span>ᆮ</span><br><span>ᄃ</span></div> <!-- HANGUL LETTER TIKEUT -->
245 <div><span>ᄄ</span><br><span>ᄄ</span></div> <!-- HANGUL LETTER SSANGTIKEUT -->
246 <div><span>ᆯ</span><br><span>ᄅ</span></div> <!-- HANGUL LETTER RIEUL -->
247 <div><span>ᆰ</span><br><span>ᆰ</span></div> <!-- HANGUL LETTER RIEUL-KIYEOK -->
248 <div><span>ᆱ</span><br><span>ᆱ</span></div> <!-- HANGUL LETTER RIEUL-MIEUM -->
249 <div><span>ᆲ</span><br><span>ᆲ</span></div> <!-- HANGUL LETTER RIEUL-PIEUP -->
250 <div><span>ᆳ</span><br><span>ᆳ</span></div> <!-- HANGUL LETTER RIEUL-SIOS -->
251 <div><span>ᆴ</span><br><span>ᆴ</span></div> <!-- HANGUL LETTER RIEUL-THIEUTH -->
252 <div><span>ᆵ</span><br><span>ᆵ</span></div> <!-- HANGUL LETTER RIEUL-PHIEUPH -->
253 <div><span>ᄚ</span><br><span>ᄚ</span></div> <!-- HANGUL LETTER RIEUL-HIEUH -->
254 <div><span>ᄆ</span><br><span>ᄆ</span></div> <!-- HANGUL LETTER MIEUM -->
255 <div><span>ᄇ</span><br><span>ᄇ</span></div> <!-- HANGUL LETTER PIEUP -->
256 <div><span>ᄈ</span><br><span>ᄈ</span></div> <!-- HANGUL LETTER SSANGPIEUP -->
257 <div><span>ᆹ</span><br><span>ᄡ</span></div> <!-- HANGUL LETTER PIEUP-SIOS -->
258 <div><span>ᄉ</span><br><span>ᄉ</span></div> <!-- HANGUL LETTER SIOS -->
259 <div><span>ᆻ</span><br><span>ᄊ</span></div> <!-- HANGUL LETTER SSANGSIOS -->
260 <div><span>ᄋ</span><br><span>ᄋ</span></div> <!-- HANGUL LETTER IEUNG -->
261 <div><span>ᆽ</span><br><span>ᄌ</span></div> <!-- HANGUL LETTER CIEUC -->
262 <div><span>ᄍ</span><br><span>ᄍ</span></div> <!-- HANGUL LETTER SSANGCIEUC -->
263 <div><span>ᆾ</span><br><span>ᄎ</span></div> <!-- HANGUL LETTER CHIEUCH -->
264 <div><span>ᄏ</span><br><span>ᄏ</span></div> <!-- HANGUL LETTER KHIEUKH -->
265 <div><span>ᇀ</span><br><span>ᄐ</span></div> <!-- HANGUL LETTER THIEUTH -->
266 <div><span>ᄑ</span><br><span>ᄑ</span></div> <!-- HANGUL LETTER PHIEUPH -->
267 <div><span>ᇂ</span><br><span>ᄒ</span></div> <!-- HANGUL LETTER HIEUH -->
268 <br>
269 <div><span>ᅡ</span><br><span>ᅡ</span></div> <!-- HANGUL LETTER A -->
270 <div><span>ᅢ</span><br><span>ᅢ</span></div> <!-- HANGUL LETTER AE -->
271 <div><span>ᅣ</span><br><span>ᅣ</span></div> <!-- HANGUL LETTER YA -->
272 <div><span>ᅤ</span><br><span>ᅤ</span></div> <!-- HANGUL LETTER YAE -->
273 <div><span>ᅥ</span><br><span>ᅥ</span></div> <!-- HANGUL LETTER EO -->
274 <div><span>ᅦ</span><br><span>ᅦ</span></div> <!-- HANGUL LETTER E -->
275
276 <div><span>ᅧ</span><br><span>ᅧ</span></div> <!-- HANGUL LETTER YEO -->
277 <div><span>ᅨ</span><br><span>ᅨ</span></div> <!-- HANGUL LETTER YE -->
278 <div><span>ᅩ</span><br><span>ᅩ</span></div> <!-- HANGUL LETTER O -->
279 <div><span>ᅪ</span><br><span>ᅪ</span></div> <!-- HANGUL LETTER WA -->
280 <div><span>ᅫ</span><br><span>ᅫ</span></div> <!-- HANGUL LETTER WAE -->
281 <div><span>ᅬ</span><br><span>ᅬ</span></div> <!-- HANGUL LETTER OE -->
282
283 <div><span>ᅭ</span><br><span>ᅭ</span></div> <!-- HANGUL LETTER YO -->
284 <div><span>ᅮ</span><br><span>ᅮ</span></div> <!-- HANGUL LETTER U -->
285 <div><span>ᅯ</span><br><span>ᅯ</span></div> <!-- HANGUL LETTER WEO -->
286 <div><span>ᅰ</span><br><span>ᅰ</span></div> <!-- HANGUL LETTER WE -->
287 <div><span>ᅱ</span><br><span>ᅱ</span></div> <!-- HANGUL LETTER WI -->
288 <div><span>ᅲ</span><br><span>ᅲ</span></div> <!-- HANGUL LETTER YU -->
289
290 <div><span>ᅳ</span><br><span>ᅳ</span></div> <!-- HANGUL LETTER EU -->
291 <div><span>ᅴ</span><br><span>ᅴ</span></div> <!-- HANGUL LETTER YI -->
292 <div><span>ᅵ</span><br><span>ᅵ</span></div> <!-- HANGUL LETTER I -->
293
294 <!-- FULLWIDTH SIGN -->
295 <br>
296 <div><span>¢</span><br><span>¢</span></div> <!-- CENT SIGN -->
297 <div><span>£</span><br><span>£</span></div> <!-- POUND SIGN -->
298 <div><span>¬</span><br><span>¬</span></div> <!-- NOT SIGN -->
299 <div><span> ̄</span><br><span>¯</span></div> <!-- MACRON -->
300 <div><span>¦</span><br><span>¦</span></div> <!-- BROKEN BAR -->
301 <div><span>¥</span><br><span>¥</span></div> <!-- YEN SIGN -->
302 <div><span>₩</span><br><span>₩</span></div> <!-- WON SIGN -->
303
304 <!-- HALFWIDTH SIGN -->
305 <br>
306 <div><span>|</span><br><span>│</span></div> <!-- FORMS LIGHT VERTICAL -->
307 <div><span>←</span><br><span>←</span></div> <!-- LEFTWARDS ARROW -->
308 <div><span>↑</span><br><span>↑</span></div> <!-- UPWARDS ARROW -->
309 <div><span>→</span><br><span>→</span></div> <!-- RIGHTWARDS ARROW -->
310 <div><span>↓</span><br><span>↓</span></div> <!-- DOWNWARDS ARROW -->
311 <div><span>■</span><br><span>■</span></div> <!-- BLACK SQUARE -->
312 <div><span>○</span><br><span>○</span></div> <!-- WHITE CIRCLE -->
313
314 <!-- HALFWIDTH LATIN -->
315 <br>
316 <div><span>A</span><br><span>A</span></div>
317 <div><span>B</span><br><span>B</span></div>
318 <div><span>C</span><br><span>C</span></div>
319 <br>
320 <div><span>a</span><br><span>a</span></div>
321 <div><span>b</span><br><span>b</span></div>
322 <div><span>c</span><br><span>c</span></div>
323
324 <!-- FULLWIDTH KANA -->
325 <br>
326 <div><span>あ</span><br><span>あ</span></div>
327 <div><span>い</span><br><span>い</span></div>
328 <div><span>う</span><br><span>う</span></div>
329 <div><span>え</span><br><span>え</span></div>
330 <div><span>お</span><br><span>お</span></div>
331 <br>
332 <div><span>ア</span><br><span>ア</span></div>
333 <div><span>イ</span><br><span>イ</span></div>
334 <div><span>ウ</span><br><span>ウ</span></div>
335 <div><span>エ</span><br><span>エ</span></div>
336 <div><span>オ</span><br><span>オ</span></div>
337 </div>
338 <p id="fontChange" style="display: none;">
339 If you are unable to see font glyphs for certain characters using the browsers default font, install the <a href="http://ossipedia.ipa.go.jp/ipafont/">IPA Font(http://ossipedia.ipa.go.jp/ipafont/)</a> and apply it.
340 <button type="button" onclick="setFontFamily()">
341 Apply
342 </button>
343 </p>
344 <script type="text/javascript">
345 if (document.getElementById) {
346 document.getElementById('fontChange').style.display = 'block'
347 }
348 </script>
349 </body>
350 </html>