File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ function localizeDeclValue(valueNode, context) {
175
175
176
176
function localizeDecl ( decl , context ) {
177
177
var valuesNode = Tokenizer . parseValues ( decl . value ) ;
178
- var localizeName = / a n i m a t i o n ( - n a m e ) ? / . test ( decl . prop ) ;
178
+ var localizeName = / a n i m a t i o n ( - n a m e ) ? $ / . test ( decl . prop ) ;
179
179
var newValuesNode = Object . create ( valuesNode ) ;
180
180
newValuesNode . nodes = valuesNode . nodes . map ( function ( valueNode ) {
181
181
var subContext = {
Original file line number Diff line number Diff line change @@ -139,6 +139,11 @@ var tests = [
139
139
input : '.foo { animation-name: bar; }' ,
140
140
expected : ':local(.foo) { animation-name: :local(bar); }'
141
141
} ,
142
+ {
143
+ should : 'not localize a single animation-delay' ,
144
+ input : '.foo { animation-delay: 1s; }' ,
145
+ expected : ':local(.foo) { animation-delay: 1s; }'
146
+ } ,
142
147
{
143
148
should : 'localize multiple animation-names' ,
144
149
input : '.foo { animation-name: bar, foobar; }' ,
You can’t perform that action at this time.
0 commit comments