Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / lists / w3-list-styles.html
blob40a4f8b7f9e0a795c8ba711fc7d19e3dce0bc9d1
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; }
21 </style>
22 <script src="resources/dump-list.js"></script>
23 <script>
24 window.onload = function()
26 if (window.testRunner) {
27 testRunner.dumpAsText();
28 filterListsWithReplacement(document.querySelectorAll(".test ol"));
31 </script>
32 </head>
33 <body>
34 <div id="navigation">
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>
37 <div class="note">
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>
44 <h2>lower-latin</h2>
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>
47 <div class="test">
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>
55 </ol></li>
56 <li>three, should show c</li>
57 <li>four, should show d</li>
58 <li>five, should show e</li>
59 </ol>
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>
64 </ol>
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>
69 </ol></div>
70 <h2>upper-latin</h2>
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>
73 <div class="test">
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>
81 </ol></li>
82 <li>three, should show C</li>
83 <li>four, should show D</li>
84 <li>five, should show E</li>
85 </ol>
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>
90 </ol>
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>
95 </ol> </div>
96 <h2>lower-alpha</h2>
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>
99 <div class="test">
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>
107 </ol></li>
108 <li>three, should show c</li>
109 <li>four, should show d</li>
110 <li>five, should show e</li>
111 </ol>
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>
116 </ol>
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>
121 </ol></div>
122 <h2>upper-alpha</h2>
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>
125 <div class="test">
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>
133 </ol></li>
134 <li>three, should show C</li>
135 <li>four, should show D</li>
136 <li>five, should show E</li>
137 </ol>
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>
142 </ol>
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>
147 </ol></div>
148 <h2>lower-greek</h2>
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>
152 <div class="test">
153 <ol class="lower-greek">
154 <li>one, may show α</li>
155 <li>two, may show β
156 <ol class="lower-greek">
157 <li>one, may show α</li>
158 <li>two, may show β</li>
159 <li>three, may show γ</li>
160 </ol></li>
161 <li>three, may show γ</li>
162 <li>four, may show δ</li>
163 <li>five, may show ε</li>
164 </ol>
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>
169 </ol>
170 <ol class="lower-greek" start="48">
171 <li>forty-eight, undefined</li>
172 <li>forty-nine, undefined</li>
173 <li>fifty, undefined</li>
174 </ol></div>
175 <h2>hiragana</h2>
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
178 exhausted.</p>
179 <div class="test">
180 <ol class="hiragana">
181 <li>one, may show あ</li>
182 <li>two, may show い
183 <ol class="hiragana">
184 <li>one, may show あ</li>
185 <li>two, may show い</li>
186 <li>three, may show う</li>
187 </ol></li>
188 <li>three, may show う</li>
189 <li>four, may show え</li>
190 <li>five, may show お</li>
191 </ol>
192 <ol class="hiragana" start="48">
193 <li>forty-eight, may show ん</li>
194 <li>forty-nine, undefined</li>
195 <li>fifty, undefined</li>
196 </ol>
197 <ol class="hiragana" start="96">
198 <li>ninety-six, undefined</li>
199 <li>ninety-seven, undefined</li>
200 <li>ninety-eight, undefined</li>
201 </ol></div>
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
205 exhausted.</p>
206 <div class="test">
207 <ol class="hiragana-iroha">
208 <li>one, may show い</li>
209 <li>two, may show ろ
210 <ol class="hiragana">
211 <li>one, may show い</li>
212 <li>two, may show ろ</li>
213 <li>three, may show は</li>
214 </ol></li>
215 <li>three, may show は</li>
216 <li>four, may show に</li>
217 <li>five, may show ほ</li>
218 </ol>
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>
223 </ol>
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>
228 </ol></div>
229 <h2>katakana</h2>
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
232 exhausted.</p>
233 <div class="test">
234 <ol class="katakana">
235 <li>one, may show ア</li>
236 <li>two, may show イ
237 <ol class="katakana">
238 <li>one, may show ア</li>
239 <li>two, may show イ</li>
240 <li>three, may show ウ</li>
241 </ol></li>
242 <li>three, may show ウ</li>
243 <li>four, may show エ</li>
244 <li>five, may show オ</li>
245 </ol>
246 <ol class="katakana" start="48">
247 <li>forty-eight, undefined</li>
248 <li>forty-nine, undefined</li>
249 <li>fifty, undefined</li>
250 </ol>
251 <ol class="katakana" start="96">
252 <li>ninety-six, undefined</li>
253 <li>ninety-seven, undefined</li>
254 <li>ninety-eight, undefined</li>
255 </ol></div>
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
259 exhausted.</p>
260 <div class="test">
261 <ol class="katakana-iroha">
262 <li>one, may show イ</li>
263 <li>two, may show ロ
264 <ol class="hiragana">
265 <li>one, may show イ</li>
266 <li>two, may show ロ</li>
267 <li>three, may show ハ</li>
268 </ol></li>
269 <li>three, may show ハ</li>
270 <li>four, may show ニ</li>
271 <li>five, may show ホ</li>
272 </ol>
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>
277 </ol>
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>
282 </ol></div>
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>
287 <div class="test">
288 <ol class="cjk">
289 <li>one</li>
290 <li>two
291 <ol class="cjk">
292 <li>one</li>
293 <li>two</li>
294 <li>three</li>
295 </ol></li>
296 <li>three</li>
297 <li>four</li>
298 <li>five</li>
299 </ol>
300 <ol class="cjk" start="20">
301 <li>twenty, undefined</li>
302 <li>twenty one, undefined</li>
303 <li>twenty two, undefined</li>
304 </ol>
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>
309 </ol>
310 <ol class="cjk" start="0">
311 <li>zero, undefined</li>
312 <li>one</li>
313 </ol>
315 <ol class="cjk" start="1000">
316 <li>a thousand, undefined</li>
317 </ol>
318 <ol class="cjk" start="10001000">
319 <li>ten million one thousand, undefined</li>
320 </ol>
321 <ol class="cjk" start="1000100">
322 <li>one million one hundred, undefined</li>
323 </ol></div>
324 <h2>hebrew</h2>
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>
327 <div class="test">
328 <ol class="hebrew">
329 <li>one, should show א</li>
330 <li>two, should show ב
331 <ol class="hebrew">
332 <li>one, should show א</li>
333 <li>two, should show ב</li>
334 <li>three, should show ג</li>
335 </ol></li>
336 <li>three, should show ג</li>
337 <li>four, should show ד</li>
338 <li>five, should show ה</li>
339 </ol>
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>
346 </ol>
347 <ol class="hebrew" start="0">
348 <li>zero, undefined, may show אפס</li>
349 <li>one, should show א</li>
350 </ol></div>
351 <h2>georgian</h2>
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>
354 <div class="test">
355 <ol class="georgian">
356 <li>one, may show ა</li>
357 <li>two, may show ბ
358 <ol class="georgian">
359 <li>one, may show ა</li>
360 <li>two, may show ბ</li>
361 <li>three, may show გ</li>
362 </ol></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>
373 </ol>
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>
378 </ol> </div>
379 <h2>armenian</h2>
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>
385 <li>two, may show բ
386 <ol class="armenian">
387 <li>one, may show ա</li>
388 <li>two, may show բ</li>
389 <li>three, may show գ</li>
390 </ol></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>
401 </ol>
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>
406 </ol> </div>
407 </body>
408 </html>