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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jan 26 14:31:32 2008 UTC (16 years, 9 months ago) by wakaba
Branch: MAIN
Changes since 1.2: +781 -0 lines
++ whatpm/t/ChangeLog	26 Jan 2008 14:31:26 -0000
	* css-font.dat: New test data for 'font' and 'font-size'.

2008-01-26  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/CSS/ChangeLog	26 Jan 2008 14:31:00 -0000
	* Parser.pm ('font-size' parser): Support for '+'.  Fixed to
	report more accurate error position.  Enabled the
	support for '-webkit-xxx-large'.
	('font' parse): Support for '+' in <'font-weight'>
	and <'font-size'>.

2008-01-26  Wakaba  <wakaba@suika.fam.cx>

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24