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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 22 12:47:26 2008 UTC (18 years ago) by wakaba
Branch: MAIN
Changes since 1.1: +149 -0 lines
++ whatpm/t/ChangeLog	22 Jan 2008 12:47:21 -0000
2008-01-22  Wakaba  <wakaba@suika.fam.cx>

	* css-1.dat: Basic tests for forward compatible parsing
	are added.

	* CSS-Parser-1.t: Support for |#errors| validation.

++ whatpm/Whatpm/CSS/ChangeLog	22 Jan 2008 12:44:31 -0000
2008-01-22  Wakaba  <wakaba@suika.fam.cx>

	* Parser.pm (new {onerror}): The default error handler (outputting
	to the standard error output) is defined.
	(parse_char_string {get_char}): Set the next number to the
	column number of the last character as the column of the
	end of file pseudo-character.

1 #data
2 #cssom
3 #csstext
4
5 #data
6 p
7 #errors
8 ;1;2;m;no declaration block
9 #cssom
10 #csstext
11
12 #data
13 p {
14 #errors
15 ;1;4;m;block not closed
16 #cssom
17 | <p>
18 #csstext
19 p {
20 }
21
22 #data
23 p {}
24 #cssom
25 | <p>
26 #csstext
27 p {
28 }
29
30 #data
31 p {;}
32 #cssom
33 | <p>
34 #csstext
35 p {
36 }
37
38 #data
39 p {!;}
40 #errors
41 ;1;4;m;no property name
42 #cssom
43 | <p>
44 #csstext
45 p {
46 }
47
48 #data
49 p {a;}
50 #errors
51 ;1;5;m;no property colon
52 #cssom
53 | <p>
54 #csstext
55 p {
56 }
57
58 #data
59 p {color:!}
60 #errors
61 ;1;10;m;syntax error:color
62 #cssom
63 | <p>
64 #csstext
65 p {
66 }
67
68 #data
69 p {color:blue}
70 #cssom
71 | <p>
72 | color: blue
73 #csstext
74 p {
75 color: blue;
76 }
77
78 #data
79 p {color:blue!}
80 #errors
81 ;1;15;m;priority syntax error
82 #cssom
83 | <p>
84 #csstext
85 p {
86 }
87
88 #data
89 p {color:blue!i}
90 #errors
91 ;1;15;m;priority syntax error
92 #cssom
93 | <p>
94 #csstext
95 p {
96 }
97
98 #data
99 p {color:blue!important}
100 #errors
101 #cssom
102 | <p>
103 | color: blue !important
104 #csstext
105 p {
106 color: blue ! important;
107 }
108
109 #data
110 p {color:blue!importants}
111 #errors
112 ;1;15;m;priority syntax error
113 #cssom
114 | <p>
115 #csstext
116 p {
117 }
118
119 #data
120 p {color:blue!important!}
121 #errors
122 ;1;24;m;no priority semicolon
123 #cssom
124 | <p>
125 #csstext
126 p {
127 }
128
129 #data
130 p {color:blue!important;}
131 #errors
132 #cssom
133 | <p>
134 | color: blue !important
135 #csstext
136 p {
137 color: blue ! important;
138 }
139
140 #data
141 p {color:blue~}
142 #errors
143 ;1;14;m;no property semicolon
144 #cssom
145 | <p>
146 #csstext
147 p {
148 }
149
150 #data
151 p {
152 color: blue;
153 }
154 q {
155 color: green;
156 }
157 #cssom
158 | <p>
159 | color: blue
160 | <q>
161 | color: green
162 #csstext
163 p {
164 color: blue;
165 }
166 q {
167 color: green;
168 }
169
170 #data
171 p {
172 color: blue !important;
173 }
174 #cssom
175 | <p>
176 | color: blue !important
177 #csstext
178 p {
179 color: blue ! important;
180 }
181
182 #data
183 p {
184 margin: 1px;
185 }
186 #cssom
187 | <p>
188 | margin: 1px
189 | margin-bottom: 1px
190 | margin-left: 1px
191 | margin-right: 1px
192 | margin-top: 1px
193 #csstext
194 p {
195 margin: 1px;
196 }
197
198 #html 1
199 <!DOCTYPE HTML><p>
200
201 #data
202 p {
203 color: blue;
204 }
205 #computed 1 p
206 -| color: -manakai-default
207 +| color: rgb(0, 0, 255)
208 -| border: 0px none -manakai-default
209 +| border: 0px none rgb(0, 0, 255)
210 -| border-bottom: 0px none -manakai-default
211 +| border-bottom: 0px none rgb(0, 0, 255)
212 -| border-bottom-color: -manakai-default
213 +| border-bottom-color: rgb(0, 0, 255)
214 -| border-color: -manakai-default
215 +| border-color: rgb(0, 0, 255)
216 -| border-left: 0px none -manakai-default
217 +| border-left: 0px none rgb(0, 0, 255)
218 -| border-left-color: -manakai-default
219 +| border-left-color: rgb(0, 0, 255)
220 -| border-right: 0px none -manakai-default
221 +| border-right: 0px none rgb(0, 0, 255)
222 -| border-right-color: -manakai-default
223 +| border-right-color: rgb(0, 0, 255)
224 -| border-top: 0px none -manakai-default
225 +| border-top: 0px none rgb(0, 0, 255)
226 -| border-top-color: -manakai-default
227 +| border-top-color: rgb(0, 0, 255)
228 #computedtext 1 p
229 - color: -manakai-default;
230 + color: rgb(0, 0, 255);
231 - border: 0px none -manakai-default;
232 + border: 0px none rgb(0, 0, 255);
233
234

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24