Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / counters / counter-increment-tests.htm
blobf24d7e520839a97f42b508d099a1788beecbe162
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: Counter-increment tests</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters">
7 <script src="../../../resources/js-test.js"></script>
8 <script>
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
13 function run()
15 /* These are text versions of the counter-increment-* tests in the CSS 2.1 test suite.
16 So 'test3' here is equivalent to counter-increment-003.htm, and so on.
17 WebKit dumpAsText versions of counter-increment-001 and 002 already exist in fast/css/counters */
18 shouldBe("window.internals.counterValue(document.getElementById('test3'))", "'-2147483648'");
19 shouldBe("window.internals.counterValue(document.getElementById('test4'))", "'-2147483647'");
20 shouldBe("window.internals.counterValue(document.getElementById('test5'))", "'0'");
21 shouldBe("window.internals.counterValue(document.getElementById('test6'))", "'0'");
22 shouldBe("window.internals.counterValue(document.getElementById('test7'))", "'0'");
23 shouldBe("window.internals.counterValue(document.getElementById('test8'))", "'10'");
24 shouldBe("window.internals.counterValue(document.getElementById('test9'))", "'10'");
25 shouldBe("window.internals.counterValue(document.getElementById('test10'))", "'2147483646'");
26 shouldBe("window.internals.counterValue(document.getElementById('test11'))", "'2147483647'");
27 shouldBe("window.internals.counterValue(document.getElementById('test12'))", "'2147483647'");
28 shouldBe("window.internals.counterValue(document.getElementById('test13'))", "'2147483647'");
29 shouldBe("window.internals.counterValue(document.getElementById('test14'))", "'2'");
30 shouldBe("window.internals.counterValue(document.getElementById('test15'))", "'-2147483648'");
31 shouldBe("window.internals.counterValue(document.getElementById('test16'))", "'-2147483648'");
32 shouldBe("window.internals.counterValue(document.getElementById('test17'))", "'-2147483648'");
33 shouldBe("window.internals.counterValue(document.getElementById('test18'))", "'0'");
34 shouldBe("window.internals.counterValue(document.getElementById('test19'))", "'0'");
35 shouldBe("window.internals.counterValue(document.getElementById('test20'))", "'0'");
36 shouldBe("window.internals.counterValue(document.getElementById('test21'))", "'20'");
37 shouldBe("window.internals.counterValue(document.getElementById('test22'))", "'20'");
38 shouldBe("window.internals.counterValue(document.getElementById('test23'))", "'2147483647'");
39 shouldBe("window.internals.counterValue(document.getElementById('test24'))", "'2147483647'");
40 shouldBe("window.internals.counterValue(document.getElementById('test25'))", "'2147483647'");
41 shouldBe("window.internals.counterValue(document.getElementById('test26'))", "'2147483647'");
42 shouldBe("window.internals.counterValue(document.getElementById('test27'))", "'3'");
43 shouldBe("window.internals.counterValue(document.getElementById('test28'))", "'-2147483648'");
44 shouldBe("window.internals.counterValue(document.getElementById('test29'))", "'-2147483648'");
45 shouldBe("window.internals.counterValue(document.getElementById('test30'))", "'-2147483648'");
46 shouldBe("window.internals.counterValue(document.getElementById('test31'))", "'0'");
47 shouldBe("window.internals.counterValue(document.getElementById('test32'))", "'0'");
48 shouldBe("window.internals.counterValue(document.getElementById('test33'))", "'0'");
49 shouldBe("window.internals.counterValue(document.getElementById('test34'))", "'30'");
50 shouldBe("window.internals.counterValue(document.getElementById('test35'))", "'30'");
51 shouldBe("window.internals.counterValue(document.getElementById('test36'))", "'2147483647'");
52 shouldBe("window.internals.counterValue(document.getElementById('test37'))", "'2147483647'");
53 shouldBe("window.internals.counterValue(document.getElementById('test38'))", "'2147483647'");
54 shouldBe("window.internals.counterValue(document.getElementById('test39'))", "'2147483647'");
55 shouldBe("window.internals.counterValue(document.getElementById('test40'))", "'32'");
56 shouldBe("window.internals.counterValue(document.getElementById('test41'))", "'-2147483648'");
57 shouldBe("window.internals.counterValue(document.getElementById('test42'))", "'-2147483648'");
58 shouldBe("window.internals.counterValue(document.getElementById('test43'))", "'-2147483648'");
59 shouldBe("window.internals.counterValue(document.getElementById('test44'))", "'0'");
60 shouldBe("window.internals.counterValue(document.getElementById('test45'))", "'0'");
61 shouldBe("window.internals.counterValue(document.getElementById('test46'))", "'0'");
62 shouldBe("window.internals.counterValue(document.getElementById('test47'))", "'320'");
63 shouldBe("window.internals.counterValue(document.getElementById('test48'))", "'320'");
64 shouldBe("window.internals.counterValue(document.getElementById('test49'))", "'2147483647'");
65 shouldBe("window.internals.counterValue(document.getElementById('test50'))", "'2147483647'");
66 shouldBe("window.internals.counterValue(document.getElementById('test51'))", "'2147483647'");
67 shouldBe("window.internals.counterValue(document.getElementById('test52'))", "'2147483647'");
68 shouldBe("window.internals.counterValue(document.getElementById('test53'))", "'5'");
69 shouldBe("window.internals.counterValue(document.getElementById('none53'))", "'5'");
70 shouldBe("window.internals.counterValue(document.getElementById('test53a'))", "'10'");
71 shouldBe("window.internals.counterValue(document.getElementById('wrapper54'))", "'5'");
72 shouldBe("window.internals.counterValue(document.getElementById('test54'))", "'10'");
73 shouldBe("window.internals.counterValue(document.getElementById('test55'))", "'1'");
74 shouldBe("window.internals.counterValue(document.getElementById('test56'))", "'-2147483648'");
75 if (window.testRunner)
76 testRunner.notifyDone();
78 </script>
79 <style type="text/css">
80 #test3
82 counter-increment: ident3 -2147483648;
84 #test3:before
86 content: counter(ident3);
88 #test4
90 counter-increment: ident4 -2147483647;
92 #test4:before
94 content: counter(ident4);
96 #test5
98 counter-increment: ident5 -0;
100 #test5:before
102 content: counter(ident5);
104 #test6
106 counter-increment: ident6 0;
108 #test6:before
110 content: counter(ident6);
112 #test7
114 counter-increment: ident7 +0;
116 #test7:before
118 content: counter(ident7);
120 #test8
122 counter-increment: ident8 10;
124 #test8:before
126 content: counter(ident8);
128 #test9
130 counter-increment: ident9 +10;
132 #test9:before
134 content: counter(ident9);
136 #test10
138 counter-increment: ident10 2147483646;
140 #test10:before
142 content: counter(ident10);
144 #test11
146 counter-increment: ident11 2147483647;
148 #test11:before
150 content: counter(ident11);
152 #test12
154 counter-increment: ident12 +2147483647;
156 #test12:before
158 content: counter(ident12);
160 #test13
162 counter-increment: ident13 2147483648;
164 #test13:before
166 content: counter(ident13);
168 #test14
170 counter-increment: ident14 ident14;
172 #test14:before
174 content: counter(ident14);
176 #test15
179 counter-increment: ident15 -2147483649 ident15 -2147483649;
181 #test15:before
183 content: counter(ident15);
185 #test16
187 counter-increment: ident16 -2147483648 ident16 -2147483648;
189 #test16:before
191 content: counter(ident16);
193 #test17
195 counter-increment: ident17 -2147483647 ident17 -2147483647;
197 #test17:before
199 content: counter(ident17);
201 #test18
203 counter-increment: ident18 -0 ident18 -0;
205 #test18:before
207 content: counter(ident18);
209 #test19
211 counter-increment: ident19 0 ident19 0;
213 #test19:before
215 content: counter(ident19);
217 #test20
219 counter-increment: ident20 +0 ident20 +0;
221 #test20:before
223 content: counter(ident20);
225 #test21
228 counter-increment: ident21 10 ident21 10;
230 #test21:before
232 content: counter(ident21);
234 #test22
236 counter-increment: ident22 +10 ident22 +10;
238 #test22:before
240 content: counter(ident22);
242 #test23
244 counter-increment: ident23 2147483646 ident23 2147483646;
246 #test23:before
248 content: counter(ident23);
250 #test24
252 counter-increment: ident24 2147483647 ident24 2147483647;
254 #test24:before
256 content: counter(ident24);
258 #test25
260 counter-increment: ident25 +2147483647 ident25 +2147483647;
262 #test25:before
264 content: counter(ident25);
266 #test26
268 counter-increment: ident26 2147483648 ident26 2147483648;
270 #test26:before
272 content: counter(ident26);
274 #test27
276 counter-increment: ident27 ident27 ident27;
278 #test27:before
280 content: counter(ident27);
282 #test28
284 counter-increment: ident28 -2147483649 ident28 -2147483649 ident28 -2147483649;
286 #test28:before
288 content: counter(ident28);
290 #test29
292 counter-increment: ident29 -2147483648 ident29 -2147483648 ident29 -2147483648;
294 #test29:before
296 content: counter(ident29);
298 #test30
300 counter-increment: ident30 -2147483647 ident30 -2147483647 ident30 -2147483647;
302 #test30:before
304 content: counter(ident30);
306 #test31
308 counter-increment: ident31 -0 ident31 -0 ident31 -0;
310 #test31:before
312 content: counter(ident31);
314 #test32
316 counter-increment: ident32 0 ident32 0 ident32 0;
318 #test32:before
320 content: counter(ident32);
322 #test33
324 counter-increment: ident33 +0 ident33 +0 ident33 +0;
326 #test33:before
328 content: counter(ident33);
330 #test34
332 counter-increment: ident34 10 ident34 10 ident34 10;
334 #test34:before
336 content: counter(ident34);
338 #test35
340 counter-increment: ident35 +10 ident35 +10 ident35 +10;
342 #test35:before
344 content: counter(ident35);
346 #test36
348 counter-increment: ident36 2147483646 ident36 2147483646 ident36 2147483646;
350 #test36:before
352 content: counter(ident36);
354 #test37
356 counter-increment: ident37 2147483647 ident37 2147483647 ident37 2147483647;
358 #test37:before
360 content: counter(ident37);
362 #test38
364 counter-increment: ident38 +2147483647 ident38 +2147483647 ident38 +2147483647;
366 #test38:before
368 content: counter(ident38);
370 #test39
372 counter-increment: ident39 2147483648 ident39 2147483648 ident39 2147483648;
374 #test39:before
376 content: counter(ident39);
378 #test40
380 counter-increment: ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40 ident40;
382 #test40:before
384 content: counter(ident40);
386 #test41
388 counter-increment: ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649 ident41 -2147483649;
390 #test41:before
392 content: counter(ident41);
394 #test42
396 counter-increment: ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648 ident42 -2147483648;
398 #test42:before
400 content: counter(ident42);
402 #test43
404 counter-increment: ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647 ident43 -2147483647;
406 #test43:before
408 content: counter(ident43);
410 #test44
412 counter-increment: ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0 ident44 -0;
414 #test44:before
416 content: counter(ident44);
418 #test45
420 counter-increment: ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0 ident45 0;
422 #test45:before
424 content: counter(ident45);
426 #test46
428 counter-increment: ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0 ident46 +0;
430 #test46:before
432 content: counter(ident46);
434 #test47
436 counter-increment: ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10 ident47 10;
438 #test47:before
440 content: counter(ident47);
442 #test48
444 counter-increment: ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10 ident48 +10;
446 #test48:before
448 content: counter(ident48);
450 #test49
452 counter-increment: ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646 ident49 2147483646;
454 #test49:before
456 content: counter(ident49);
458 #test50
460 counter-increment: ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647 ident50 2147483647;
462 #test50:before
464 content: counter(ident50);
466 #test51
468 counter-increment: ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647 ident51 +2147483647;
470 #test51:before
472 content: counter(ident51);
474 #test52
476 counter-increment: ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648 ident52 2147483648;
478 #test52:before
480 content: counter(ident52);
482 #test53
484 counter-increment: ident53 5;
486 #test53a
488 counter-increment: ident53 5;
490 #none53
492 counter-increment: none;
494 #none53:before
496 content: counter(ident53);
498 #test53:before
500 content: counter(ident53);
502 #test53a:before
504 content: counter(ident53);
507 #wrapper54 /*test 54*/
509 counter-increment: ident54 5;
511 #test54
513 counter-increment: inherit;
515 #test54:before
517 content: counter(ident54);
519 #wrapper54:before
521 content: counter(ident54);
524 #test55
526 counter-increment: ident55;
528 #test55:before
530 content: counter(ident55);
532 #test56
534 counter-increment: ident56 -2147483649;
536 #test56:before
538 content: counter(ident56);
541 </style>
542 </head>
543 <body onload="setTimeout('run()', 0);">
544 <div id="test3"></div>
545 <div id="test4"></div>
546 <div id="test5"></div>
547 <div id="test6"></div>
548 <div id="test7"></div>
549 <div id="test8"></div>
550 <div id="test9"></div>
551 <div id="test10"></div>
552 <div id="test11"></div>
553 <div id="test12"></div>
554 <div id="test13"></div>
555 <div id="test14"></div>
556 <div id="test15"></div>
557 <div id="test16"></div>
558 <div id="test17"></div>
559 <div id="test18"></div>
560 <div id="test19"></div>
561 <div id="test20"></div>
562 <div id="test21"></div>
563 <div id="test22"></div>
564 <div id="test23"></div>
565 <div id="test24"></div>
566 <div id="test25"></div>
567 <div id="test26"></div>
568 <div id="test27"></div>
569 <div id="test28"></div>
570 <div id="test29"></div>
571 <div id="test30"></div>
572 <div id="test31"></div>
573 <div id="test32"></div>
574 <div id="test33"></div>
575 <div id="test34"></div>
576 <div id="test35"></div>
577 <div id="test36"></div>
578 <div id="test37"></div>
579 <div id="test38"></div>
580 <div id="test39"></div>
581 <div id="test40"></div>
582 <div id="test41"></div>
583 <div id="test42"></div>
584 <div id="test43"></div>
585 <div id="test44"></div>
586 <div id="test45"></div>
587 <div id="test46"></div>
588 <div id="test47"></div>
589 <div id="test48"></div>
590 <div id="test49"></div>
591 <div id="test50"></div>
592 <div id="test51"></div>
593 <div id="test52"></div>
594 <div id="test53"></div>
595 <div id="none53"></div>
596 <div id="test53a"></div>
597 <div id="wrapper54">
598 <div id="test54"></div>
599 </div>
600 <div id="test55"></div>
601 <div id="test56"></div>
602 </body>
603 </html>