3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
5 .test ol { float: left; padding-right:
20px; }
6 .test h2 { clear: left; }
7 .negative-number { padding-left:
300px; }
8 .negative-number li:before { content:
"\002D"; }
11 The following styles are ordered as they appear in section
6.1. of the
12 3 February
2015 CR of the CSS3 Counter Styles Level
3 module
<http://www.w3.org/TR/css-counter-styles-
3/#simple-numeric
>.
14 ol.decimal { list-style-type: decimal; }
16 ol.decimal-leading-zero { list-style-type: decimal-leading-zero; }
18 ol.arabic-indic { list-style-type: arabic-indic; }
20 ol.bengali { list-style-type: bengali; }
22 ol.cambodian { list-style-type: cambodian; }
24 ol.khmer { list-style-type: khmer; }
26 ol.devanagari { list-style-type: devanagari; }
28 ol.gujarati { list-style-type: gujarati; }
30 ol.gurmukhi { list-style-type: gurmukhi; }
32 ol.kannada { list-style-type: kannada; }
34 ol.lao { list-style-type: lao; }
36 ol.malayalam { list-style-type: malayalam; }
38 ol.mongolian { list-style-type: mongolian; }
40 ol.myanmar { list-style-type: myanmar; }
42 ol.oriya { list-style-type: oriya; }
44 ol.persian { list-style-type: persian; }
45 ol.urdu { list-style-type: urdu; }
47 ol.telugu { list-style-type: telugu; }
49 ol.thai { list-style-type: thai; }
51 ol.tibetan { list-style-type: tibetan; }
53 <script src=
"resources/dump-list.js"></script>
55 function testListItemMarkerEqualsListItemText(listItemElement
, depth
)
57 var isNegativeNumber
= listItemElement
.parentNode
.className
&& listItemElement
.parentNode
.className
.split(" ").indexOf("negative-number") > -1;
58 var expectedMarkerText
= (isNegativeNumber
? "-" : "") + listItemElement
.innerText
;
59 return testListItemMarkerEquals(internals
.markerTextForListItem(listItemElement
), expectedMarkerText
);
64 if (!window
.testRunner
)
67 testRunner
.dumpAsText();
68 filterListsWithReplacement(document
.querySelectorAll(".test ol"), testListItemMarkerEqualsListItemText
);
69 document
.body
.removeChild(document
.getElementById("description")); // Remove description when running in DRT.
71 window
.onload
= runTest
;
75 <h1>CSS3 Numeric list-style-type
</h1>
76 <p id=
"description">his tests that all of the alphabetic CSS3 list-style-types are supported as per
<a href=
"http://www.w3.org/TR/css-counter-styles-3/#simple-alphabetic">section
6.1 of the spec. CSS3 Counter Styles Level
3 module
</a> (CR
3 February
2015). This test PASSED if the list item matches its bullet for every list item (below). For example, for the decimal numeric system the second
<li
> (which corresponds to
2 in the standard ordering of the positive integers) should be rendered as:
2.
2</p>
79 <ol class=
"arabic-indic">
89 <li>١٠</li>
91 <ol class=
"arabic-indic" start=
"0">
94 <ol class=
"arabic-indic" start=
"-2147483649">
97 <ol class=
"arabic-indic negative-number" start=
"-2147483648">
98 <li>٢١٤٧٤٨٣٦٤٨</li>
99 <li>٢١٤٧٤٨٣٦٤٧</li>
115 <li>১০</li>
117 <ol class=
"bengali" start=
"0">
120 <ol class=
"bengali" start=
"-2147483649">
123 <ol class=
"bengali negative-number" start=
"-2147483648">
124 <li>২১৪৭৪৮৩৬৪৮</li>
125 <li>২১৪৭৪৮৩৬৪৭</li>
131 <ol class=
"cambodian">
141 <li>១០</li>
143 <ol class=
"cambodian" start=
"0">
146 <ol class=
"cambodian" start=
"-2147483649">
149 <ol class=
"cambodian negative-number" start=
"-2147483648">
150 <li>២១៤៧៤៨៣៦៤៨</li>
151 <li>២១៤៧៤៨៣៦៤៧</li>
166 <li>១០</li>
168 <ol class=
"khmer" start=
"0">
171 <ol class=
"khmer" start=
"-2147483649">
174 <ol class=
"khmer negative-number" start=
"-2147483648">
175 <li>២១៤៧៤៨៣៦៤៨</li>
176 <li>២១៤៧៤៨៣៦៤៧</li>
194 <ol class=
"decimal" start=
"0">
197 <ol class=
"decimal" start=
"-2147483649">
200 <ol class=
"decimal negative-number" start=
"-2147483648">
207 <h2>decimal-leading-zero
</h2>
208 <ol class=
"decimal-leading-zero">
220 <ol class=
"decimal-leading-zero" start=
"0">
223 <ol class=
"decimal-leading-zero" start=
"-2147483649">
226 <ol class=
"decimal-leading-zero negative-number" start=
"-2147483648">
234 <ol class=
"devanagari">
244 <li>१०</li>
246 <ol class=
"devanagari" start=
"0">
249 <ol class=
"devanagari" start=
"-2147483649">
252 <ol class=
"devanagari negative-number" start=
"-2147483648">
253 <li>२१४७४८३६४८</li>
254 <li>२१४७४८३६४७</li>
260 <ol class=
"gujarati">
270 <li>૧૦</li>
272 <ol class=
"gujarati" start=
"0">
275 <ol class=
"gujarati" start=
"-2147483649">
278 <ol class=
"gujarati negative-number" start=
"-2147483648">
279 <li>૨૧૪૭૪૮૩૬૪૮</li>
280 <li>૨૧૪૭૪૮૩૬૪૭</li>
286 <ol class=
"gurmukhi">
296 <li>੧੦</li>
298 <ol class=
"gurmukhi" start=
"0">
301 <ol class=
"gurmukhi" start=
"-2147483649">
304 <ol class=
"gurmukhi negative-number" start=
"-2147483648">
305 <li>੨੧੪੭੪੮੩੬੪੮</li>
306 <li>੨੧੪੭੪੮੩੬੪੭</li>
322 <li>೧೦</li>
324 <ol class=
"kannada" start=
"0">
327 <ol class=
"kannada" start=
"-2147483649">
330 <ol class=
"kannada negative-number" start=
"-2147483648">
331 <li>೨೧೪೭೪೮೩೬೪೮</li>
332 <li>೨೧೪೭೪೮೩೬೪೭</li>
348 <li>໑໐</li>
350 <ol class=
"lao" start=
"0">
353 <ol class=
"lao" start=
"-2147483649">
356 <ol class=
"lao negative-number" start=
"-2147483648">
357 <li>໒໑໔໗໔໘໓໖໔໘</li>
358 <li>໒໑໔໗໔໘໓໖໔໗</li>
364 <ol class=
"malayalam">
374 <li>൧൦</li>
376 <ol class=
"malayalam" start=
"0">
379 <ol class=
"malayalam" start=
"-2147483649">
382 <ol class=
"malayalam negative-number" start=
"-2147483648">
383 <li>൨൧൪൭൪൮൩൬൪൮</li>
384 <li>൨൧൪൭൪൮൩൬൪൭</li>
390 <ol class=
"mongolian">
400 <li>᠑᠐</li>
402 <ol class=
"mongolian" start=
"0">
405 <ol class=
"mongolian" start=
"-2147483649">
408 <ol class=
"mongolian negative-number" start=
"-2147483648">
409 <li>᠒᠑᠔᠗᠔᠘᠓᠖᠔᠘</li>
410 <li>᠒᠑᠔᠗᠔᠘᠓᠖᠔᠗</li>
426 <li>၁၀</li>
428 <ol class=
"myanmar" start=
"0">
431 <ol class=
"myanmar" start=
"-2147483649">
434 <ol class=
"myanmar negative-number" start=
"-2147483648">
435 <li>၂၁၄၇၄၈၃၆၄၈</li>
436 <li>၂၁၄၇၄၈၃၆၄၇</li>
452 <li>୧୦</li>
454 <ol class=
"oriya" start=
"0">
457 <ol class=
"oriya" start=
"-2147483649">
460 <ol class=
"oriya negative-number" start=
"-2147483648">
461 <li>୨୧୪୭୪୮୩୬୪୮</li>
462 <li>୨୧୪୭୪୮୩୬୪୭</li>
478 <li>۱۰</li>
480 <ol class=
"persian" start=
"0">
483 <ol class=
"persian" start=
"-2147483649">
486 <ol class=
"persian negative-number" start=
"-2147483648">
487 <li>۲۱۴۷۴۸۳۶۴۸</li>
488 <li>۲۱۴۷۴۸۳۶۴۷</li>
503 <li>۱۰</li>
505 <ol class=
"urdu" start=
"0">
508 <ol class=
"urdu" start=
"-2147483649">
511 <ol class=
"urdu negative-number" start=
"-2147483648">
512 <li>۲۱۴۷۴۸۳۶۴۸</li>
513 <li>۲۱۴۷۴۸۳۶۴۷</li>
529 <li>౧౦</li>
531 <ol class=
"telugu" start=
"0">
534 <ol class=
"telugu" start=
"-2147483649">
537 <ol class=
"telugu negative-number" start=
"-2147483648">
538 <li>౨౧౪౭౪౮౩౬౪౮</li>
539 <li>౨౧౪౭౪౮౩౬౪౭</li>
555 <li>༡༠</li>
557 <ol class=
"tibetan" start=
"0">
560 <ol class=
"tibetan" start=
"-2147483649">
563 <ol class=
"tibetan negative-number" start=
"-2147483648">
564 <li>༢༡༤༧༤༨༣༦༤༨</li>
565 <li>༢༡༤༧༤༨༣༦༤༧</li>
581 <li>๑๐</li>
583 <ol class=
"thai" start=
"0">
586 <ol class=
"thai" start=
"-2147483649">
589 <ol class=
"thai negative-number" start=
"-2147483648">
590 <li>๒๑๔๗๔๘๓๖๔๘</li>
591 <li>๒๑๔๗๔๘๓๖๔๗</li>