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 = {
129129 } , 
130130
131131 "<color>" : function ( part ) { 
132-  return  part . type  ==  "color"  ||  part  ==  "transparent" ; 
132+  return  part . type  ==  "color"  ||  part  ==  "transparent"   ||   part   ==   "currentColor" ; 
133133 } , 
134134
135135 "<number>" : function ( part ) { 
Original file line number Diff line number Diff line change 140140 } 
141141 } ) ) ; 
142142
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+ 
143160 suite . add ( new  ValidationTestCase ( { 
144161 property : "background-image" , 
145162
560577 "red" , 
561578 "#f00" , 
562579 "inherit" , 
563- 
580+  "transparent" , 
581+  "currentColor" 
564582 ] , 
565583
566584 invalid : { 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments