1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
3 <head> <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
4 <title>I18N Tests: list-style-type
</title>
5 <style type=
"text/css">
6 ol
.lower-latin
{ list-style-type: lower-latin
; }
7 ol
.upper-latin
{ list-style-type: upper-latin
; }
8 ol
.lower-alpha
{ list-style-type: lower-alpha
; }
9 ol
.upper-alpha
{ list-style-type: upper-alpha
; }
10 ol
.cjk
{ list-style-type: cjk-ideographic
; }
11 ol
.hiragana
{ list-style-type: hiragana
; }
12 ol
.hiragana-iroha
{ list-style-type: hiragana-iroha
; }
13 ol
.katakana
{ list-style-type: katakana
; }
14 ol
.katakana-iroha
{ list-style-type: katakana-iroha
; }
15 ol
.hebrew
{ list-style-type: hebrew
; }
16 ol
.georgian
{ list-style-type: georgian
; }
17 ol
.armenian
{ list-style-type: armenian
; }
18 ol
.lower-greek
{ list-style-type: lower-greek
; }
19 ol
{ margin-bottom: 2em; margin-left: 3em; }
20 ol ol
{ margin-bottom: 0em; margin-top: 0.5em; }
22 <script src=
"resources/dump-list.js"></script>
24 window
.onload = function()
26 if (window
.testRunner
) {
27 testRunner
.dumpAsText();
28 filterListsWithReplacement(document
.querySelectorAll(".test ol"));
35 <h1>I18N Tests: list-style-type
</h1>
36 <p>This page tests support for the CSS list-style-type property, as defined in CSS2.0.
</p>
38 <p><strong>Note:
</strong> The CSS2.0 specification does not specify in any detail the mechanism for implementing the numbering schemes
39 defined. Expectations for behaviour are based on the version of the CSS3 Lists module current at the time this test was last updated. In most cases,
40 however, these tests simply allow you to see whether and how a particular user agent implements these features, rather than testing against the
41 requirements of the specification.
</p></div> </div>
42 <p class=
"instructions">Check whether the numbering of the lists is what you would expect.
</p>
43 <p class=
"notes">The
<code>start
</code> attribute is used on
<code>ol
</code> to skip to higher numbers.
</p>
45 <p class=
"notes">CSS says:
<code>list-style-type: lower-latin;
</code> .
</p>
46 <p class=
"notes">The CSS2.0 specification specifies the set of characters as
"a, b, c, ... z". It doesn't specify what happens after z.
</p>
48 <ol class=
"lower-latin">
49 <li>one, should show a
</li>
50 <li>two, should show b
51 <ol class=
"lower-latin">
52 <li>one, expect to see a
</li>
53 <li>two, expect to see b
</li>
54 <li>three, expect to see c
</li>
56 <li>three, should show c
</li>
57 <li>four, should show d
</li>
58 <li>five, should show e
</li>
60 <ol class=
"lower-latin" start=
"26">
61 <li>twenty six, should show z
</li>
62 <li>twenty seven, undefined
</li>
63 <li>twenty eight, undefined
</li>
65 <ol class=
"lower-latin" start=
"52">
66 <li>fifty-two, undefined
</li>
67 <li>fifty-three, undefined
</li>
68 <li>fifty-four, undefined
</li>
71 <p class=
"notes">CSS says:
<code>list-style-type: upper-latin;
</code></p>
72 <p class=
"notes">The CSS2.0 specification specifies the set of characters as
"A, B, C, ... Z". It doesn't specify what happens after Z.
</p>
74 <ol class=
"upper-latin">
75 <li>one, should show A
</li>
76 <li>two, should show B
77 <ol class=
"upper-latin">
78 <li>one, expect to see A
</li>
79 <li>two, expect to see B
</li>
80 <li>three, expect to see C
</li>
82 <li>three, should show C
</li>
83 <li>four, should show D
</li>
84 <li>five, should show E
</li>
86 <ol class=
"upper-latin" start=
"26">
87 <li>twenty six, should show Z
</li>
88 <li>twenty seven, undefined
</li>
89 <li>twenty eight, undefined
</li>
91 <ol class=
"upper-latin" start=
"52">
92 <li>fifty-two, undefined
</li>
93 <li>fifty-three, undefined
</li>
94 <li>fifty-four, undefined
</li>
97 <p class=
"notes">CSS says:
<code>list-style-type: lower-alpha;
</code> </p>
98 <p class=
"notes">The CSS2.0 specification specifies the set of characters as
"a, b, c, ... z". It doesn't specify what happens after z.
</p>
100 <ol class=
"lower-alpha">
101 <li>one, should show a
</li>
102 <li>two, should show b
103 <ol class=
"lower-latin">
104 <li>one, expect to see a
</li>
105 <li>two, expect to see b
</li>
106 <li>three, expect to see c
</li>
108 <li>three, should show c
</li>
109 <li>four, should show d
</li>
110 <li>five, should show e
</li>
112 <ol class=
"lower-alpha" start=
"26">
113 <li>twenty six, should show z
</li>
114 <li>twenty seven, undefined
</li>
115 <li>twenty eight, undefined
</li>
117 <ol class=
"lower-alpha" start=
"52">
118 <li>fifty-two, undefined
</li>
119 <li>fifty-three, undefined
</li>
120 <li>fifty-four, undefined
</li>
123 <p class=
"notes">CSS says:
<code>list-style-type: upper-alpha;
</code> </p>
124 <p class=
"notes">The CSS2.0 specification specifies the set of characters as
"A, B, C, ... Z". It doesn't specify what happens after Z.
</p>
126 <ol class=
"upper-alpha">
127 <li>one, should show A
</li>
128 <li>two, should show B
129 <ol class=
"upper-latin">
130 <li>one, expect to see A
</li>
131 <li>two, expect to see B
</li>
132 <li>three, expect to see C
</li>
134 <li>three, should show C
</li>
135 <li>four, should show D
</li>
136 <li>five, should show E
</li>
138 <ol class=
"upper-alpha" start=
"26">
139 <li>twenty six, should show Z
</li>
140 <li>twenty seven, undefined
</li>
141 <li>twenty eight, undefined
</li>
143 <ol class=
"upper-alpha" start=
"52">
144 <li>fifty-two, undefined
</li>
145 <li>fifty-three, undefined
</li>
146 <li>fifty-four, undefined
</li>
149 <p class=
"notes">CSS says:
<code>list-style-type: lower-greek;
</code> </p>
150 <p class=
"notes">The CSS2.0 specification doesn't explicitly define the set of characters in the list, nor what happens after the list is
151 exhausted, but does say
"Lowercase classical Greek alpha, beta, gamma, ... (έ, ή, ί, ...)".
</p>
153 <ol class=
"lower-greek">
154 <li>one, may show α
</li>
156 <ol class=
"lower-greek">
157 <li>one, may show α
</li>
158 <li>two, may show β
</li>
159 <li>three, may show γ
</li>
161 <li>three, may show γ
</li>
162 <li>four, may show δ
</li>
163 <li>five, may show ε
</li>
165 <ol class=
"lower-greek" start=
"24">
166 <li>twenty four, may show ω
</li>
167 <li>twenty seven, undefined
</li>
168 <li>twenty eight, undefined
</li>
170 <ol class=
"lower-greek" start=
"48">
171 <li>forty-eight, undefined
</li>
172 <li>forty-nine, undefined
</li>
173 <li>fifty, undefined
</li>
176 <p class=
"notes">CSS says:
<code>list-style-type: hiragana;
</code> </p>
177 <p class=
"notes">The CSS
2.0 specification doesn't explicitly define the set of characters in the list, nor what happens after the list is
180 <ol class=
"hiragana">
181 <li>one, may show あ
</li>
183 <ol class=
"hiragana">
184 <li>one, may show あ
</li>
185 <li>two, may show い
</li>
186 <li>three, may show う
</li>
188 <li>three, may show う
</li>
189 <li>four, may show え
</li>
190 <li>five, may show お
</li>
192 <ol class=
"hiragana" start=
"48">
193 <li>forty-eight, may show ん
</li>
194 <li>forty-nine, undefined
</li>
195 <li>fifty, undefined
</li>
197 <ol class=
"hiragana" start=
"96">
198 <li>ninety-six, undefined
</li>
199 <li>ninety-seven, undefined
</li>
200 <li>ninety-eight, undefined
</li>
202 <h2>hiragana-iroha
</h2>
203 <p class=
"notes">CSS says:
<code>list-style-type: hiragana-iroha;
</code></p>
204 <p class=
"notes">The CSS
2.0 specification doesn't explicitly define the set of characters in the list, nor what happens after the list is
207 <ol class=
"hiragana-iroha">
208 <li>one, may show い
</li>
210 <ol class=
"hiragana">
211 <li>one, may show い
</li>
212 <li>two, may show ろ
</li>
213 <li>three, may show は
</li>
215 <li>three, may show は
</li>
216 <li>four, may show に
</li>
217 <li>five, may show ほ
</li>
219 <ol class=
"hiragana-iroha" start=
"47">
220 <li>forty-seven, may show す
</li>
221 <li>forty-eight, undefined
</li>
222 <li>forty-nine, undefined
</li>
224 <ol class=
"hiragana-iroha" start=
"94">
225 <li>ninety-four, undefined
</li>
226 <li>ninety-five, undefined
</li>
227 <li>ninety-six, undefined
</li>
230 <p class=
"notes">CSS says:
<code>list-style-type: katakana;
</code> </p>
231 <p class=
"notes">The CSS
2.0 specification doesn't explicitly define the set of characters in the list, nor what happens after the list is
234 <ol class=
"katakana">
235 <li>one, may show ア
</li>
237 <ol class=
"katakana">
238 <li>one, may show ア
</li>
239 <li>two, may show イ
</li>
240 <li>three, may show ウ
</li>
242 <li>three, may show ウ
</li>
243 <li>four, may show エ
</li>
244 <li>five, may show オ
</li>
246 <ol class=
"katakana" start=
"48">
247 <li>forty-eight, undefined
</li>
248 <li>forty-nine, undefined
</li>
249 <li>fifty, undefined
</li>
251 <ol class=
"katakana" start=
"96">
252 <li>ninety-six, undefined
</li>
253 <li>ninety-seven, undefined
</li>
254 <li>ninety-eight, undefined
</li>
256 <h2>katakana-iroha
</h2>
257 <p class=
"notes">CSS says:
<code>list-style-type: katakana-iroha;
</code> </p>
258 <p class=
"notes">The CSS
2.0 specification doesn't explicitly define the set of characters in the list, nor what happens after the list is
261 <ol class=
"katakana-iroha">
262 <li>one, may show イ
</li>
264 <ol class=
"hiragana">
265 <li>one, may show イ
</li>
266 <li>two, may show ロ
</li>
267 <li>three, may show ハ
</li>
269 <li>three, may show ハ
</li>
270 <li>four, may show ニ
</li>
271 <li>five, may show ホ
</li>
273 <ol class=
"katakana-iroha" start=
"47">
274 <li>forty-seven, may show ス
</li>
275 <li>forty-eight, undefined
</li>
276 <li>forty-nine, undefined
</li>
278 <ol class=
"katakana-iroha" start=
"94">
279 <li>ninety-four, undefined
</li>
280 <li>ninety-five, undefined
</li>
281 <li>ninety-six, undefined
</li>
283 <h2>cjk-ideographic
</h2>
284 <p class=
"notes">CSS says:
<code>list-style-type: cjk-ideographic;
</code></p>
285 <p class=
"notes">The CSS2.0 specification doesn't define what characters should be used to create each number - there are multiple alternatives.
286 Note that the characters specified in the CSS3 Lists module as of the date of publication of this page are not those expected below.
</p>
300 <ol class=
"cjk" start=
"20">
301 <li>twenty, undefined
</li>
302 <li>twenty one, undefined
</li>
303 <li>twenty two, undefined
</li>
305 <ol class=
"cjk" start=
"100">
306 <li>a hundred, undefined
</li>
307 <li>a hundred and one, undefined
</li>
308 <li>a hundred and two, undefined
</li>
310 <ol class=
"cjk" start=
"0">
311 <li>zero, undefined
</li>
315 <ol class=
"cjk" start=
"1000">
316 <li>a thousand, undefined
</li>
318 <ol class=
"cjk" start=
"10001000">
319 <li>ten million one thousand, undefined
</li>
321 <ol class=
"cjk" start=
"1000100">
322 <li>one million one hundred, undefined
</li>
325 <p class=
"notes">CSS says:
<code>list-style-type: hebrew;
</code></p>
326 <p class=
"notes">The CSS2.0 specification doesn't define the algorithm for the Hebrew numbering.
</p>
329 <li>one, should show א
</li>
330 <li>two, should show ב
332 <li>one, should show א
</li>
333 <li>two, should show ב
</li>
334 <li>three, should show ג
</li>
336 <li>three, should show ג
</li>
337 <li>four, should show ד
</li>
338 <li>five, should show ה
</li>
340 <ol class=
"hebrew" start=
"97">
341 <li>ninety-seven, undefined, may show צז
</li>
342 <li>ninety-eight, undefined, may show צח
</li>
343 <li>ninety-nine, undefined, may show צט
</li>
344 <li>hundred, undefined, may show ק
</li>
345 <li>a hundred and one, undefined, may show קא
</li>
347 <ol class=
"hebrew" start=
"0">
348 <li>zero, undefined, may show אפס
</li>
349 <li>one, should show א
</li>
352 <p class=
"notes">CSS says:
<code>list-style-type: georgian;
</code></p>
353 <p class=
"notes">The CSS2.0 specification doesn't define the algorithm for Georgian numbering in detail.
</p>
355 <ol class=
"georgian">
356 <li>one, may show ა
</li>
358 <ol class=
"georgian">
359 <li>one, may show ა
</li>
360 <li>two, may show ბ
</li>
361 <li>three, may show გ
</li>
363 <li>three, may show გ
</li>
364 <li>four, may show დ
</li>
365 <li>five, may show ე
</li>
366 <li>six, may show ვ
</li>
367 <li>seven, may show ზ
</li>
368 <li>eight, may show ჱ
</li>
369 <li>nine, may show თ
</li>
370 <li>ten, may show ი
</li>
371 <li>eleven, may show ია
</li>
372 <li>twelve, may show იბ
</li>
374 <ol class=
"georgian" start=
"99">
375 <li>ninety-nine, undefined, may show ჟთ
</li>
376 <li>hundred, undefined, may show რ
</li>
377 <li>a hundred and one, undefined, may show რა
</li>
380 <p class=
"notes">CSS says:
<code>list-style-type: armenian;
</code></p>
381 <p class=
"notes">The CSS2.0 specification doesn't define the algorithm for Armenian numbering in detail.
</p>
382 <div class=
"test" style=
"display: none"> <!-- disable for now since things dump differently depending on installed fonts -->
383 <ol class=
"armenian">
384 <li>one, may show ա
</li>
386 <ol class=
"armenian">
387 <li>one, may show ա
</li>
388 <li>two, may show բ
</li>
389 <li>three, may show գ
</li>
391 <li>three, may show գ
</li>
392 <li>four, may show դ
</li>
393 <li>five, may show ե
</li>
394 <li>six, may show զ
</li>
395 <li>seven, may show է
</li>
396 <li>eight, may show ը
</li>
397 <li>nine, may show թ
</li>
398 <li>ten, may show ժ
</li>
399 <li>eleven, may show ժա
</li>
400 <li>twelve, may show ժբ
</li>
402 <ol class=
"armenian" start=
"99">
403 <li>ninety-nine, undefined, may show ղթ
</li>
404 <li>hundred, undefined, may show ճ
</li>
405 <li>a hundred and one, undefined, may show ճա
</li>