Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / lists / w3-css3-list-styles-fallback-style.html
blob955c56981db91c46ffba0f6c476dfbfed5e30f7f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <link rel="stylesheet" href="resources/w3-css3-list-styles-alphabetic.css" type="text/css" charset="utf-8" />
6 <style>
7 .test ol { float: left; padding-right: 20px; }
8 .test h2 { clear: left; }
9 hr { clear: left;}
10 hr + h2 { color: blue; }
12 /*
13 The following styles are ordered as they appear in section 6.1 + 6.3 of the
14 3 February 2015 CR of the CSS3 Counter Styles Level 3 module <http://www.w3.org/TR/css-counter-styles-3/#simple-numeric>.
17 ol.armenian { list-style-type: armenian; }
19 ol.upper-armenian { list-style-type: upper-armenian; }
21 ol.lower-armenian { list-style-type: lower-armenian; }
23 ol.cjk-ideographic { list-style-type: cjk-ideographic; }
25 ol.georgian { list-style-type: georgian; }
27 ol.hebrew { list-style-type: hebrew; }
29 ol.syriac { list-style-type: syriac; }
31 ol.tamil { list-style-type: tamil; }
33 ol.lower-roman { list-style-type: lower-roman; }
35 ol.upper-roman { list-style-type: upper-roman; }
37 ol.japanese-formal { list-style-type: japanese-formal; }
39 ol.japanese-informal { list-style-type: japanese-informal; }
41 ol.simp-chinese-formal { list-style-type: simp-chinese-formal; }
43 ol.simp-chinese-informal { list-style-type: simp-chinese-informal; }
45 ol.trad-chinese-formal { list-style-type: trad-chinese-formal; }
47 ol.trad-chinese-informal { list-style-type: trad-chinese-informal; }
49 ol.ethiopic-numeric { list-style-type: ethiopic-numeric; }
50 </style>
51 <script src="resources/dump-list.js"></script>
52 <script>
53 function runTest()
55 if (!window.testRunner)
56 return;
58 testRunner.dumpAsText();
59 filterListsWithReplacement(document.querySelectorAll(".test ol"), testListItemMarkerEqualsListItemText);
60 document.body.removeChild(document.getElementById("description")); // Remove description when running in DRT.
62 window.onload = runTest;
63 </script>
64 </head>
65 <body>
66 <h1>CSS3 Fallback to Decimal List Style</h1>
67 <div id="description">
68 <p>This tests that we fallback to the decimal list style type when the ordinal is outside the representable range for the list style type as per the <a href="http://www.w3.org/TR/css-counter-styles-3/">CSS3 Counter Styles Level 3 module</a> (CR 3 Februari 2015). This test PASSED if the list item matches its marker for every list item (below).</p>
69 <p>Note, as of 12/04/2010, ethiopic-numeric; japanese-formal; japanese-informal; simp-chinese-formal; simp-chinese-informal; syriac; tamil; trad-chinese-formal; and trad-chinese-informal are unsupported and hence have expected failure results.</p>
70 </div>
71 <hr/>
72 <h2>Algorithmic</h2>
73 <div class="test">
74 <h2>armenian</h2>
75 <ol class="armenian" start="-1">
76 <li>-1</li>
77 <li>0</li>
78 <li>&#x531;</li>
79 </ol>
80 <ol class="armenian" start="99999999">
81 <li>&#x554;&#x302;&#x54B;&#x302;&#x542;&#x302;&#x539;&#x302;&#x554;&#x54B;&#x542;&#x539;</li>
82 <li>100000000</li>
83 </ol>
84 </div>
86 <div class="test">
87 <h2>cjk-ideographic</h2>
88 <ol class="cjk-ideographic" start="-1">
89 <li>&#x8CA0;&#x4E00;</li>
90 <li>&#x96F6;</li>
91 <li>&#x4E00;</li>
92 </ol>
93 </div>
95 <div class="test">
96 <!-- FIXME: We don't currently support this list-style-type. These are expected failure results. -->
97 <h2>ethiopic-numeric</h2>
98 <ol class="ethiopic-numeric" start="-1">
99 <li>-1</li>
100 <li>0</li>
101 <li>1</li>
102 </ol>
103 </div>
105 <div class="test">
106 <h2>georgian</h2>
107 <ol class="georgian" start="-1">
108 <li>-1</li>
109 <li>0</li>
110 <li>&#x10D0;</li>
111 </ol>
112 <ol class="georgian" start="19999">
113 <li>&#x10F5;&#x10F0;&#x10E8;&#x10DF;&#x10D7;</li>
114 <li>20000</li>
115 <li>20001</li>
116 </ol>
117 </div>
118 <div class="test">
119 <h2>hebrew</h2>
120 <ol class="hebrew" start="-1">
121 <li>-1</li>
122 <li>&#x5D0;&#x5E4;&#x5E1;</li>
123 <li>&#x5D0;</li>
124 </ol>
125 <ol class="hebrew" start="999999">
126 <li>&#x5EA;&#x5EA;&#x5E7;&#x5E6;&#x5D8;&#x27;&#x5EA;&#x5EA;&#x5E7;&#x5E6;&#x5D8;</li>
127 <li>1000000</li>
128 <li>1000001</li>
129 </ol>
130 </div>
131 <div class="test">
132 <!-- FIXME: We don't currently support this list-style-type. These are expected failure results. -->
133 <h2>japanese-formal</h2>
134 <ol class="japanese-formal" start="-1">
135 <li>-1</li>
136 <li>0</li>
137 <li>1</li>
138 </ol>
139 </div>
140 <div class="test">
141 <!-- FIXME: We don't currently support this list-style-type. These are expected failure results. -->
142 <h2>japanese-informal</h2>
143 <ol class="japanese-informal" start="-1">
144 <li>-1</li>
145 <li>0</li>
146 <li>1</li>
147 </ol>
148 </div>
149 <div class="test">
150 <h2>lower-armenian</h2>
151 <ol class="lower-armenian" start="-1">
152 <li>-1</li>
153 <li>0</li>
154 <li>&#x0561;</li>
155 </ol>
156 <ol class="lower-armenian" start="99999999">
157 <li>&#1412;&#770;&#1403;&#770;&#1394;&#770;&#1385;&#770;&#1412;&#1403;&#1394;&#1385;</li>
158 <li>100000000</li>
159 </ol>
160 </div>
161 <div class="test">
162 <h2>lower-roman</h2>
163 <ol class="lower-roman" start="-1">
164 <li>-1</li>
165 <li>0</li>
166 <li>i</li>
167 </ol>
168 </div>
169 <div class="test">
170 <h2>simp-chinese-formal</h2>
171 <ol class="simp-chinese-formal" start="-1">
172 <li>&#x8D1F;&#x58F9;</li>
173 <li>&#x96F6;</li>
174 <li>&#x58F9;</li>
175 </ol>
176 </div>
177 <div class="test">
178 <h2>simp-chinese-informal</h2>
179 <ol class="simp-chinese-informal" start="-1">
180 <li>&#x8D1F;&#x4E00;</li>
181 <li>&#x96F6;</li>
182 <li>&#x4E00;</li>
183 </ol>
184 </div>
185 <div class="test">
186 <!-- FIXME: We don't currently support this list-style-type. These are expected failure results. -->
187 <h2>syriac</h2>
188 <ol class="syriac" start="-1">
189 <li>-1</li>
190 <li>0</li>
191 <li>1</li>
192 </ol>
193 </div>
194 <div class="test">
195 <!-- FIXME: We don't currently support this list-style-type. These are expected failure results. -->
196 <h2>tamil</h2>
197 <ol class="tamil" start="-1">
198 <li>-1</li>
199 <li>0</li>
200 <li>1</li>
201 </ol>
202 </div>
203 <div class="test">
204 <h2>trad-chinese-formal</h2>
205 <ol class="trad-chinese-formal" start="-1">
206 <li>&#x8CA0;&#x58F9;</li>
207 <li>&#x96F6;</li>
208 <li>&#x58F9;</li>
209 </ol>
210 </div>
211 <div class="test">
212 <h2>trad-chinese-informal</h2>
213 <ol class="trad-chinese-informal" start="-1">
214 <li>&#x8CA0;&#x4E00;</li>
215 <li>&#x96F6;</li>
216 <li>&#x4E00;</li>
217 </ol>
218 </div>
219 <div class="test">
220 <h2>upper-armenian</h2>
221 <ol class="upper-armenian" start="-1">
222 <li>-1</li>
223 <li>0</li>
224 <li>&#x0531;</li>
225 </ol>
226 <ol class="upper-armenian" start="99999999">
227 <li>&#x554;&#x302;&#x54B;&#x302;&#x542;&#x302;&#x539;&#x302;&#x554;&#x54B;&#x542;&#x539;</li>
228 <li>100000000</li>
229 </ol>
230 </div>
231 <div class="test">
232 <h2>upper-roman</h2>
233 <ol class="upper-roman" start="-1">
234 <li>-1</li>
235 <li>0</li>
236 <li>I</li>
237 </ol>
238 </div>
239 <hr/>
240 <h2>Alphabetic</h2>
241 <div class="test">
242 <h2>cjk-earthly-branch</h2>
243 <ol class="cjk-earthly-branch" start="-1">
244 <li>-1</li>
245 <li>0</li>
246 <li>&#x5B50;</li>
247 </ol>
248 </div>
250 <div class="test">
251 <h2>cjk-heavenly-stem</h2>
252 <ol class="cjk-heavenly-stem" start="-1">
253 <li>-1</li>
254 <li>0</li>
255 <li>&#x7532;</li>
256 </ol>
257 </div>
259 <div class="test">
260 <h2>ethiopic-halehame</h2>
261 <ol class="ethiopic-halehame" start="-1">
262 <li>-1</li>
263 <li>0</li>
264 <li>&#x1200;</li>
265 </ol>
266 </div>
268 <div class="test">
269 <h2>ethiopic-halehame-am</h2>
270 <ol class="ethiopic-halehame-am" start="-1">
271 <li>-1</li>
272 <li>0</li>
273 <li>&#x1200;</li>
274 </ol>
275 </div>
277 <div class="test">
278 <h2>hangul-consonant</h2>
279 <ol class="hangul-consonant" start="-1">
280 <li>-1</li>
281 <li>0</li>
282 <li>&#x3131;</li>
283 </ol>
284 </div>
286 <div class="test">
287 <h2>hangul</h2>
288 <ol class="hangul" start="-1">
289 <li>-1</li>
290 <li>0</li>
291 <li>&#xAC00;</li>
292 </ol>
293 </div>
295 <div class="test">
296 <h2>hiragana-iroha</h2>
297 <ol class="hiragana-iroha" start="-1">
298 <li>-1</li>
299 <li>0</li>
300 <li>&#x3044;</li>
301 </ol>
302 </div>
304 <div class="test">
305 <h2>hiragana</h2>
306 <ol class="hiragana" start="-1">
307 <li>-1</li>
308 <li>0</li>
309 <li>&#x3042;</li>
310 </ol>
311 </div>
313 <div class="test">
314 <h2>katakana-iroha</h2>
315 <ol class="katakana-iroha" start="-1">
316 <li>-1</li>
317 <li>0</li>
318 <li>&#x30A4;</li>
319 </ol>
320 </div>
322 <div class="test">
323 <h2>katakana</h2>
324 <ol class="katakana" start="-1">
325 <li>-1</li>
326 <li>0</li>
327 <li>&#x30A2;</li>
328 </ol>
329 </div>
331 <div class="test">
332 <h2>lower-alpha</h2>
333 <ol class="lower-alpha" start="-1">
334 <li>-1</li>
335 <li>0</li>
336 <li>&#x0061;</li>
337 </ol>
338 </div>
339 <div class="test">
340 <h2>lower-latin</h2>
341 <ol class="lower-latin" start="-1">
342 <li>-1</li>
343 <li>0</li>
344 <li>&#x0061;</li>
345 </ol>
346 </div>
348 <div class="test">
349 <h2>lower-greek</h2>
350 <ol class="lower-greek" start="-1">
351 <li>-1</li>
352 <li>0</li>
353 <li>&#x03B1;</li>
354 </ol>
355 </div>
357 <div class="test">
358 <h2>ethiopic-halehame-ti-er</h2>
359 <ol class="ethiopic-halehame-ti-er" start="-1">
360 <li>-1</li>
361 <li>0</li>
362 <li>&#x1200;</li>
363 </ol>
364 </div>
366 <div class="test">
367 <h2>ethiopic-halehame-ti-et</h2>
368 <ol class="ethiopic-halehame-ti-et" start="-1">
369 <li>-1</li>
370 <li>0</li>
371 <li>&#x1200;</li>
372 </ol>
373 </div>
375 <div class="test">
376 <h2>upper-alpha</h2>
377 <ol class="upper-alpha" start="-1">
378 <li>-1</li>
379 <li>0</li>
380 <li>&#x0041;</li>
381 </ol>
382 </div>
383 <div class="test">
384 <h2>upper-latin</h2>
385 <ol class="upper-latin" start="-1">
386 <li>-1</li>
387 <li>0</li>
388 <li>&#x0041;</li>
389 </ol>
390 </div>
391 </body>
392 </html>