File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ var ValidationTypes = {
129
129
} ,
130
130
131
131
"<color>" : function ( part ) {
132
- return part . type == "color" || part == "transparent" ;
132
+ return part . type == "color" || part == "transparent" || part == "currentColor" ;
133
133
} ,
134
134
135
135
"<number>" : function ( part ) {
Original file line number Diff line number Diff line change 140
140
}
141
141
} ) ) ;
142
142
143
+ suite . add ( new ValidationTestCase ( {
144
+ property : "background-color" ,
145
+
146
+ valid : [
147
+ "red" ,
148
+ "#f00" ,
149
+ "inherit" ,
150
+ "transparent" ,
151
+ "currentColor"
152
+ ] ,
153
+
154
+ invalid : {
155
+ "foo" : "Expected (<color> | inherit) but found 'foo'." ,
156
+ "invert" : "Expected (<color> | inherit) but found 'invert'." ,
157
+ }
158
+ } ) ) ;
159
+
143
160
suite . add ( new ValidationTestCase ( {
144
161
property : "background-image" ,
145
162
560
577
"red" ,
561
578
"#f00" ,
562
579
"inherit" ,
563
-
580
+ "transparent" ,
581
+ "currentColor"
564
582
] ,
565
583
566
584
invalid : {
You can’t perform that action at this time.
0 commit comments