1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<style>
x {}
x {
#
}
x {
color: red;
{}}
x {
### {}}
x {
color: red;
#########
}
x {
color: red {};
color: #;
}
x {
color: red;
###;
color: @;
}
x {
color{};
color{#};
color{###};
color{{{}}};
}
x {
*zoom: @1; /* IE hack. Ignored */
color: @;
}
x {
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); /* IE hack. Ignored */
filter:alpha(opacity=95);
background-image:-webkit-linear-gradient(bottom,#2d2927,rgba(49,46,45,.75) 40%,rgba(51,50,49,0) 72%,rgba(54,54,53,0)); /* valid */
background-image:-webkit-linear-gradient(10); /* Should be reported. */
/* Others should be ignored as a vendor-specific extension. */
background:-moz-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 100%);
background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,rgba(0,0,0,0)),color-stop(100%,rgba(0,0,0,1)));
background:-webkit-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 100%);
background:-o-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 100%);
background:-ms-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 100%);
background:linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,1) 100%);
cursor: hand
}
x {
/* To be reported. */
invalidproperty: blue;
--invalidproperty: blue;
-unknownvendor-property: blue;
/* To be ignored. */
-webkit-invalidproperty: blue;
scrollbar-arrow-color: fail;
SCROLLBAR-ARROW-COLOR: fail;
}
x {
background: invalid-linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 100%) ;
background: linear-gradient(top,rgba(0,0,0,0) 0,rgba(0,0,0,1) 100%) ;
background: IE-hack ignored \9 ;
background: IE-hack ignored \0 ;
background: IE-hack ignored\0/ ;
background: IE-hack ignored !ie;
animation: 3s slidein;
font-size-adjust: none;
transform: translateZ(0);
user-select: none;
-webkit-text-size-adjust: 100%;
unicode-bidi: isolate;
}
x, {
}
@supports (display: #) { /* No warning expected. */
}
@supports (#) {
}
@supports #;
@supports (display: none) # (display: block) {
}
@xxx;
@xxx {}
@namespace "xxx" %;
@namespace %;
@namespace;
@media %%%;
@-moz-keyframes { }
@page;
@page xxx;
@font-face;
@font-face xxx;
@viewport;
@viewport xxx;
@-webkit-region;
@-webkit-region xxx;
@-webkit-filter;
@-webkit-filter xxx;
@media screen# {}
@media screen, screen# {}
@media screen, screen#, screen {}
@-webkit-keyframes x {
0x,100% {}
0%,1x {}
x
}
div.search input:invalid-pseudo-one {}
div.search input::invalid-pseudo-two {}
div.search input::-webkit-input-placeholder {}
div.search input:-moz-placeholder {}
div.search input:-ms-input-placeholder {}
.valid-vendor-secific-prefixes {
-ah-x: ?; -Ah-x: ?;
-atsc-x: ?;
-epub-x: ?;
-hp-x: ?;
-ibooks-x: ?;
-khtml-x: ?;
-ms-x: ?;
-mso-x: ?;
-moz-x: ?; -moZ-x: ?;
-rim-x: ?;
-ro-x: ?;
-tc-x: ?;
-wap-x: ?; -wAp-x: ?;
-weasy-x: ?;
-xv-x: ?;
}
.invalid-vendor-specific-prefix {
-ibookss-x: ?;
-ibooks-: ?;
-ibookz-x: ?;
-m-x: ?;
}
</style>
<script>
function test()
{
// Ensure script generated errors don't go to the console.
var style = document.createElement('style');
style.textContent = "x{y:*}";
document.head.appendChild(style);
var messages = WebInspector.console.messages;
for (var i = 0; i < messages.length; i++) {
if (messages[i].source === WebInspector.ConsoleMessage.MessageSource.CSS)
InspectorTest.addResult(messages[i].message + " (line: " + messages[i].line + ")");
}
InspectorTest.completeTest();
}
</script>
</head>
<body onload="runTest()">
<p id="p">Tests CSS warnings are properly exposed.</p>
</body>
</html>
|