/[suikacvs]/markup/html/whatpm/t/css-generated.dat
Suika

Contents of /markup/html/whatpm/t/css-generated.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Jan 29 22:15:01 2008 UTC (16 years, 9 months ago) by wakaba
Branch: MAIN
Changes since 1.3: +526 -0 lines
++ whatpm/t/ChangeLog	29 Jan 2008 22:14:49 -0000
2008-01-30  Wakaba  <wakaba@suika.fam.cx>

	* css-generated.dat: New test data for 'counter-increment', 'content',
	and 'counter-reset' are added.

	* CSS-Parser-1.t: 'counter-reset' and 'counter-increment'
	are added.

++ whatpm/Whatpm/CSS/ChangeLog	29 Jan 2008 22:13:54 -0000
2008-01-30  Wakaba  <wakaba@suika.fam.cx>

	* Parser.pm ($default_serializer): New 'ADDCOUNTER'
	and 'SETCOUNTER' types supported.
	('content'): 'counter()' and 'counters()' are supported iff
	the property 'counter-reset' is supported.
	('counter-reset', 'counter-increment'): Implemented.

1 #html 1
2 <!DOCTYPE HTML><p>
3
4 #data
5 p {
6 content: normal;
7 }
8 #cssom
9 | <p>
10 | content: normal
11 #csstext
12 p {
13 content: normal;
14 }
15
16 #data
17 p {
18 content: normal "none";
19 }
20 #errors
21 ;2;19;m;no property semicolon
22 #cssom
23 | <p>
24
25 #data
26 p {
27 content: none;
28 }
29 #cssom
30 | <p>
31 | content: none
32 #csstext
33 p {
34 content: none;
35 }
36
37 #data
38 p {
39 content: inherit;
40 }
41 #cssom
42 | <p>
43 | content: inherit
44 #csstext
45 p {
46 content: inherit;
47 }
48
49 #data
50 p {
51 content: "a";
52 }
53 #cssom
54 | <p>
55 | content: "a"
56 #csstext
57 p {
58 content: "a";
59 }
60
61 #data
62 p {
63 content: "a" "" "n";
64 }
65 #cssom
66 | <p>
67 | content: "a" "" "n"
68 #csstext
69 p {
70 content: "a" "" "n";
71 }
72
73 #data
74 p {
75 content: """";
76 }
77 #cssom
78 | <p>
79 | content: "" ""
80 #csstext
81 p {
82 content: "" "";
83 }
84
85 #data
86 p {
87 content: "normal", "none";
88 }
89 #errors
90 ;2;20;m;no property semicolon
91 #cssom
92 | <p>
93
94 #data
95 p {
96 content: url(a);
97 }
98 #cssom
99 | <p>
100 | content: url(a)
101 #csstext
102 p {
103 content: url(a);
104 }
105
106 #data
107 p {
108 content: "IMAGE: " url(image);
109 }
110 #cssom
111 | <p>
112 | content: "IMAGE: " url(image)
113 #csstext
114 p {
115 content: "IMAGE: " url(image);
116 }
117
118 #data
119 p {
120 content: counter(aBc);
121 }
122 #cssom
123 | <p>
124 | content: counter(aBc, decimal)
125 #csstext
126 p {
127 content: counter(aBc, decimal);
128 }
129
130 #data
131 p {
132 content: counter(inherit);
133 }
134 #cssom
135 | <p>
136 | content: counter(inherit, decimal)
137 #csstext
138 p {
139 content: counter(inherit, decimal);
140 }
141
142 #data
143 p {
144 content: counter(a, circlE);
145 }
146 #cssom
147 | <p>
148 | content: counter(a, circle)
149 #csstext
150 p {
151 content: counter(a, circle);
152 }
153
154 #data
155 p {
156 content: counter(a, normal);
157 }
158 #errors
159 ;2;23;m;syntax error:'content'
160 #cssom
161 | <p>
162
163 #data
164 p {
165 content: counter(chapter/* Chapter # */ ) "." counter(section /* # */ );
166 }
167 #cssom
168 | <p>
169 | content: counter(chapter, decimal) "." counter(section, decimal)
170 #csstext
171 p {
172 content: counter(chapter, decimal) "." counter(section, decimal);
173 }
174
175 #data
176 p {
177 content: counter(a, "b");
178 }
179 #errors
180 ;2;23;m;syntax error:'content'
181 #cssom
182 | <p>
183
184 #data
185 p {
186 content: counter(a, "b", decimal);
187 }
188 #errors
189 ;2;23;m;syntax error:'content'
190 #cssom
191 | <p>
192
193 #data
194 p {
195 content: counters(a);
196 }
197 #errors
198 ;2;22;m;syntax error:'content'
199 #cssom
200 | <p>
201
202 #data
203 p {
204 content: counters(a, decimal);
205 }
206 #errors
207 ;2;24;m;syntax error:'content'
208 #cssom
209 | <p>
210
211 #data
212 p {
213 content: counters(a, "b");
214 }
215 #cssom
216 | <p>
217 | content: counters(a, "b", decimal)
218 #csstext
219 p {
220 content: counters(a, "b", decimal);
221 }
222
223 #data
224 p {
225 content: counters(inherit, "x");
226 }
227 #cssom
228 | <p>
229 | content: counters(inherit, "x", decimal)
230 #csstext
231 p {
232 content: counters(inherit, "x", decimal);
233 }
234
235 #data
236 p {
237 content: counters(a, "b", SQUARE);
238 }
239 #cssom
240 | <p>
241 | content: counters(a, "b", square)
242 #csstext
243 p {
244 content: counters(a, "b", square);
245 }
246
247 #data
248 p {
249 content: counters(a, "b", none);
250 }
251 #cssom
252 | <p>
253 | content: counters(a, "b", none)
254 #csstext
255 p {
256 content: counters(a, "b", none);
257 }
258
259 #data
260 p {
261 content: counters(a, "b", c);
262 }
263 #errors
264 ;2;29;m;syntax error:'content'
265 #cssom
266 | <p>
267
268 #data
269 p {
270 content: counters(a, "b", inherit);
271 }
272 #errors
273 ;2;29;m;syntax error:'content'
274 #cssom
275 | <p>
276
277 #data
278 p {
279 content: attr(a);
280 }
281 #cssom
282 | <p>
283 | content: attr(a)
284 #csstext
285 p {
286 content: attr(a);
287 }
288
289 #data
290 p {
291 content: attr(aLign);
292 }
293 #cssom
294 | <p>
295 | content: attr(aLign)
296 #csstext
297 p {
298 content: attr(aLign);
299 }
300
301 #data
302 p {
303 content: attr(inherit);
304 }
305 #cssom
306 | <p>
307 | content: attr(inherit)
308 #csstext
309 p {
310 content: attr(inherit);
311 }
312
313 #data
314 p {
315 content: attr(a, b);
316 }
317 #errors
318 ;2;18;m;syntax error:'content'
319 #cssom
320 | <p>
321
322 #data
323 p {
324 content: attr(|a);
325 }
326 #cssom
327 | <p>
328 | content: attr(a)
329 #csstext
330 p {
331 content: attr(a);
332 }
333
334 #data
335 p {
336 content: attr(a|);
337 }
338 #errors
339 ;2;19;m;syntax error:'content'
340 #cssom
341 | <p>
342
343 #data
344 p {
345 content: attr(a||b);
346 }
347 #errors
348 ;2;19;m;syntax error:'content'
349 #cssom
350 | <p>
351
352 #data
353 p {
354 content: "[title:"attr(title )"]";
355 }
356 #cssom
357 | <p>
358 | content: "[title:" attr(title) "]"
359 #csstext
360 p {
361 content: "[title:" attr(title) "]";
362 }
363
364 #data
365 p {
366 content: open-quote;
367 }
368 #cssom
369 | <p>
370 | content: open-quote
371 #csstext
372 p {
373 content: open-quote;
374 }
375
376 #data
377 p {
378 content: close-quote;
379 }
380 #cssom
381 | <p>
382 | content: close-quote
383 #csstext
384 p {
385 content: close-quote;
386 }
387
388 #data
389 p {
390 content: no-open-quote;
391 }
392 #cssom
393 | <p>
394 | content: no-open-quote
395 #csstext
396 p {
397 content: no-open-quote;
398 }
399
400 #data
401 p {
402 content: no-close-quote;
403 }
404 #cssom
405 | <p>
406 | content: no-close-quote
407 #csstext
408 p {
409 content: no-close-quote;
410 }
411
412 #data
413 p {
414 content: open-quote"QUOTE:";
415 }
416 #cssom
417 | <p>
418 | content: open-quote "QUOTE:"
419 #csstext
420 p {
421 content: open-quote "QUOTE:";
422 }
423
424 #data
425 p {
426 quotes:;
427 }
428 #errors
429 ;2;10;m;syntax error:'quotes'
430 #cssom
431 | <p>
432
433 #data
434 p {
435 quotes: none;
436 }
437 #cssom
438 | <p>
439 | quotes: none
440 #csstext
441 p {
442 quotes: none;
443 }
444 #computed 1 p
445 -| quotes: -manakai-default
446 +| quotes: none
447 #computedtext 1 p
448 - quotes: -manakai-default;
449 + quotes: none;
450
451 #data
452 p {
453 quotes: none !important;
454 }
455 #cssom
456 | <p>
457 | quotes: none !important
458 #csstext
459 p {
460 quotes: none ! important;
461 }
462
463 #data
464 p {
465 quotes: noNe;
466 }
467 #cssom
468 | <p>
469 | quotes: none
470 #csstext
471 p {
472 quotes: none;
473 }
474
475 #data
476 p {
477 quotes: -manakai-default;
478 }
479 #cssom
480 | <p>
481 | quotes: -manakai-default
482 #csstext
483 p {
484 quotes: -manakai-default;
485 }
486 #computed 1 p
487 #computedtext 1 p
488
489 #data
490 p {
491 quotes: -MANAKAI-default;
492 }
493 #cssom
494 | <p>
495 | quotes: -manakai-default
496 #csstext
497 p {
498 quotes: -manakai-default;
499 }
500
501 #data
502 p {
503 quotes: -manakai-default ! important;
504 }
505 #cssom
506 | <p>
507 | quotes: -manakai-default !important
508 #csstext
509 p {
510 quotes: -manakai-default ! important;
511 }
512
513 #data
514 p {
515 quotes: inherit;
516 }
517 #cssom
518 | <p>
519 | quotes: inherit
520 #csstext
521 p {
522 quotes: inherit;
523 }
524 #computed 1 p
525 #computedtext 1 p
526
527 #data
528 p {
529 quotes: INHERIt;
530 }
531 #cssom
532 | <p>
533 | quotes: inherit
534 #csstext
535 p {
536 quotes: inherit;
537 }
538
539 #data
540 p {
541 quotes: inherit ! important;
542 }
543 #cssom
544 | <p>
545 | quotes: inherit !important
546 #csstext
547 p {
548 quotes: inherit ! important;
549 }
550
551 #data
552 p {
553 quotes: "1";
554 }
555 #errors
556 ;2;14;m;syntax error:'quotes'
557 #cssom
558 | <p>
559
560 #data
561 p {
562 quotes: "1" "2";
563 }
564 #cssom
565 | <p>
566 | quotes: "1" "2"
567 #csstext
568 p {
569 quotes: "1" "2";
570 }
571 #computed 1 p
572 -| quotes: -manakai-default
573 +| quotes: "1" "2"
574 #computedtext 1 p
575 - quotes: -manakai-default;
576 + quotes: "1" "2";
577
578 #data
579 p {
580 quotes: "1""2";
581 }
582 #cssom
583 | <p>
584 | quotes: "1" "2"
585 #csstext
586 p {
587 quotes: "1" "2";
588 }
589
590 #data
591 p {
592 quotes: "1"/**/"2";
593 }
594 #cssom
595 | <p>
596 | quotes: "1" "2"
597 #csstext
598 p {
599 quotes: "1" "2";
600 }
601
602 #data
603 p {
604 quotes: "1", "2";
605 }
606 #errors
607 ;2;14;m;syntax error:'quotes'
608 #cssom
609 | <p>
610
611 #data
612 p {
613 quotes: "「" "」" "『" "』";
614 }
615 #cssom
616 | <p>
617 | quotes: "「" "」" "『" "』"
618 #csstext
619 p {
620 quotes: "「" "」" "『" "』";
621 }
622
623 #data
624 p {
625 quotes: '"' '"' "'" "'";
626 }
627 #cssom
628 | <p>
629 | quotes: """ """ "'" "'"
630 #csstext
631 p {
632 quotes: """ """ "'" "'";
633 }
634
635 #data
636 p {
637 quotes: "1" "2" "3";
638 }
639 #errors
640 ;2;22;m;syntax error:'quotes'
641 #cssom
642 | <p>
643
644 #data
645 p {
646 quotes: "1" "2" "3" "4";
647 }
648 #cssom
649 | <p>
650 | quotes: "1" "2" "3" "4"
651 #csstext
652 p {
653 quotes: "1" "2" "3" "4";
654 }
655
656 #data
657 p {
658 quotes: "1" "2" "3" "4" "5" "6";
659 }
660 #cssom
661 | <p>
662 | quotes: "1" "2" "3" "4" "5" "6"
663 #csstext
664 p {
665 quotes: "1" "2" "3" "4" "5" "6";
666 }
667
668 #data
669 p {
670 quotes: 1 2;
671 }
672 #errors
673 ;2;11;m;syntax error:'quotes'
674 #cssom
675 | <p>
676
677 #data
678 p {
679 counter-reset: ;
680 }
681 #errors
682 ;2;18;m;syntax error:'counter-reset'
683 #cssom
684 | <p>
685
686 #data
687 p {
688 counter-reset: none;
689 }
690 #cssom
691 | <p>
692 | counter-reset: none
693 #csstext
694 p {
695 counter-reset: none;
696 }
697 #computed 1 p
698 #computedtext 1 p
699
700 #data
701 p {
702 COUNTER-RESET: NONE;
703 }
704 #cssom
705 | <p>
706 | counter-reset: none
707
708 #data
709 p {
710 counter-reset: none!important;
711 }
712 #cssom
713 | <p>
714 | counter-reset: none !important
715
716 #data
717 p {
718 counter-reset: inherit;
719 }
720 #cssom
721 | <p>
722 | counter-reset: inherit
723 #csstext
724 p {
725 counter-reset: inherit;
726 }
727 #computed 1 p
728 #computedtext 1 p
729
730 #data
731 p {
732 COUNTER-reset: INHERIT;
733 }
734 #cssom
735 | <p>
736 | counter-reset: inherit
737
738 #data
739 p {
740 counter-reset: inherit ! important;
741 }
742 #cssom
743 | <p>
744 | counter-reset: inherit !important
745
746 #data
747 p {
748 counter-reset: 4
749 }
750 #errors
751 ;2;18;m;syntax error:'counter-reset'
752 #cssom
753 | <p>
754
755 #data
756 p {
757 counter-reset: a;
758 }
759 #cssom
760 | <p>
761 | counter-reset: a 0
762 #csstext
763 p {
764 counter-reset: a 0;
765 }
766 #computed 1 p
767 -| counter-reset: none
768 +| counter-reset: a 0
769
770 #data
771 p {
772 counter-reset: aBc;
773 }
774 #cssom
775 | <p>
776 | counter-reset: aBc 0
777 #csstext
778 p {
779 counter-reset: aBc 0;
780 }
781
782 #data
783 p {
784 counter-reset: a 12;
785 }
786 #cssom
787 | <p>
788 | counter-reset: a 12
789 #csstext
790 p {
791 counter-reset: a 12;
792 }
793
794 #data
795 p {
796 counter-reset: a 1 2
797 }
798 #errors
799 ;2;22;m;no property semicolon
800
801 #data
802 p {
803 counter-reset: a b;
804 }
805 #cssom
806 | <p>
807 | counter-reset: a 0 b 0
808 #csstext
809 p {
810 counter-reset: a 0 b 0;
811 }
812
813 #data
814 p {
815 counter-reset: a,b
816 }
817 #errors
818 ;2;19;m;no property semicolon
819 #cssom
820 | <p>
821
822 #data
823 p {
824 counter-reset: a b !important;
825 }
826 #cssom
827 | <p>
828 | counter-reset: a 0 b 0 !important
829 #csstext
830 p {
831 counter-reset: a 0 b 0 ! important;
832 }
833
834 #data
835 p {
836 counter-reset: a 1 b 2 a 23;
837 }
838 #cssom
839 | <p>
840 | counter-reset: a 1 b 2 a 23
841
842 #data
843 p {
844 counter-reset: a +23 b +55;
845 }
846 #cssom
847 | <p>
848 | counter-reset: a 23 b 55
849
850 #data
851 p {
852 counter-reset: a -10 b -20
853 }
854 #cssom
855 | <p>
856 | counter-reset: a -10 b -20
857
858 #data
859 p {
860 counter-reset: a 10.23 b 5665.4 c -53.4
861 }
862 #cssom
863 | <p>
864 | counter-reset: a 10 b 5665 c -53
865
866 #data
867 p {
868 counter-reset: a 00000244 b 0000004
869 }
870 #cssom
871 | <p>
872 | counter-reset: a 244 b 4
873
874 #data
875 p {
876 counter-reset: none 1;
877 }
878 #cssom
879 | <p>
880 | counter-reset: none 1
881
882 #data
883 p {
884 counter-RESET: None 1;
885 }
886 #cssom
887 | <p>
888 | counter-reset: None 1
889
890 #data
891 p {
892 counter-reset: none a;
893 }
894 #cssom
895 | <p>
896 | counter-reset: none 0 a 0
897
898 #data
899 p {
900 counter-reset: inherit 2;
901 }
902 #cssom
903 | <p>
904 | counter-reset: inherit 2
905
906 #data
907 p {
908 Counter-Reset: Inherit 2;
909 }
910 #cssom
911 | <p>
912 | counter-reset: Inherit 2
913
914 #data
915 p {
916 counter-reset: inherit a;
917 }
918 #cssom
919 | <p>
920 | counter-reset: inherit 0 a 0
921
922 #data
923 p {
924 counter-increment: ;
925 }
926 #errors
927 ;2;22;m;syntax error:'counter-increment'
928 #cssom
929 | <p>
930
931 #data
932 p {
933 counter-increment: none;
934 }
935 #cssom
936 | <p>
937 | counter-increment: none
938 #csstext
939 p {
940 counter-increment: none;
941 }
942 #computed 1 p
943 #computedtext 1 p
944
945 #data
946 p {
947 COUNTER-INCREMENT: NONE;
948 }
949 #cssom
950 | <p>
951 | counter-increment: none
952
953 #data
954 p {
955 counter-increment: none!important;
956 }
957 #cssom
958 | <p>
959 | counter-increment: none !important
960
961 #data
962 p {
963 counter-increment: inherit;
964 }
965 #cssom
966 | <p>
967 | counter-increment: inherit
968 #csstext
969 p {
970 counter-increment: inherit;
971 }
972 #computed 1 p
973 #computedtext 1 p
974
975 #data
976 p {
977 COUNTER-increment: INHERIT;
978 }
979 #cssom
980 | <p>
981 | counter-increment: inherit
982
983 #data
984 p {
985 counter-increment: inherit ! important;
986 }
987 #cssom
988 | <p>
989 | counter-increment: inherit !important
990
991 #data
992 p {
993 counter-increment: 4
994 }
995 #errors
996 ;2;22;m;syntax error:'counter-increment'
997 #cssom
998 | <p>
999
1000 #data
1001 p {
1002 counter-increment: a;
1003 }
1004 #cssom
1005 | <p>
1006 | counter-increment: a 1
1007 #csstext
1008 p {
1009 counter-increment: a 1;
1010 }
1011 #computed 1 p
1012 -| counter-increment: none
1013 +| counter-increment: a 1
1014
1015 #data
1016 p {
1017 counter-increment: aBc;
1018 }
1019 #cssom
1020 | <p>
1021 | counter-increment: aBc 1
1022 #csstext
1023 p {
1024 counter-increment: aBc 1;
1025 }
1026
1027 #data
1028 p {
1029 counter-increment: a 12;
1030 }
1031 #cssom
1032 | <p>
1033 | counter-increment: a 12
1034 #csstext
1035 p {
1036 counter-increment: a 12;
1037 }
1038
1039 #data
1040 p {
1041 counter-increment: a 1 2
1042 }
1043 #errors
1044 ;2;26;m;no property semicolon
1045
1046 #data
1047 p {
1048 counter-increment: a b;
1049 }
1050 #cssom
1051 | <p>
1052 | counter-increment: a 1 b 1
1053 #csstext
1054 p {
1055 counter-increment: a 1 b 1;
1056 }
1057
1058 #data
1059 p {
1060 counter-increment: a,b
1061 }
1062 #errors
1063 ;2;23;m;no property semicolon
1064 #cssom
1065 | <p>
1066
1067 #data
1068 p {
1069 counter-increment: a b !important;
1070 }
1071 #cssom
1072 | <p>
1073 | counter-increment: a 1 b 1 !important
1074 #csstext
1075 p {
1076 counter-increment: a 1 b 1 ! important;
1077 }
1078
1079 #data
1080 p {
1081 counter-increment: a 1 b 2 a 23;
1082 }
1083 #cssom
1084 | <p>
1085 | counter-increment: a 1 b 2 a 23
1086
1087 #data
1088 p {
1089 counter-increment: a +23 b +55;
1090 }
1091 #cssom
1092 | <p>
1093 | counter-increment: a 23 b 55
1094
1095 #data
1096 p {
1097 counter-increment: a -10 b -20
1098 }
1099 #cssom
1100 | <p>
1101 | counter-increment: a -10 b -20
1102
1103 #data
1104 p {
1105 counter-increment: a 10.23 b 5665.4 c -53.4
1106 }
1107 #cssom
1108 | <p>
1109 | counter-increment: a 10 b 5665 c -53
1110
1111 #data
1112 p {
1113 counter-increment: a 00000244 b 0000004
1114 }
1115 #cssom
1116 | <p>
1117 | counter-increment: a 244 b 4
1118
1119 #data
1120 p {
1121 counter-increment: none 1;
1122 }
1123 #cssom
1124 | <p>
1125 | counter-increment: none 1
1126
1127 #data
1128 p {
1129 counter-INCREMENT: None 1;
1130 }
1131 #cssom
1132 | <p>
1133 | counter-increment: None 1
1134
1135 #data
1136 p {
1137 counter-increment: none a;
1138 }
1139 #cssom
1140 | <p>
1141 | counter-increment: none 1 a 1
1142
1143 #data
1144 p {
1145 counter-increment: inherit 2;
1146 }
1147 #cssom
1148 | <p>
1149 | counter-increment: inherit 2
1150
1151 #data
1152 p {
1153 Counter-Increment: Inherit 2;
1154 }
1155 #cssom
1156 | <p>
1157 | counter-increment: Inherit 2
1158
1159 #data
1160 p {
1161 counter-increment: inherit a;
1162 }
1163 #cssom
1164 | <p>
1165 | counter-increment: inherit 1 a 1
1166
1167 #data
1168 p {
1169 list-style: none;
1170 }
1171 #cssom
1172 | <p>
1173 | list-style: none none outside
1174 | list-style-image: none
1175 | list-style-position: outside
1176 | list-style-type: none
1177 #csstext
1178 p {
1179 list-style-image: none;
1180 list-style-position: outside;
1181 list-style-type: none;
1182 }
1183
1184

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24