@@ -197,27 +197,27 @@ function localizeAnimationShorthandDeclValueNodes(nodes, context) {
197
197
animation name of infinite from the second.
198
198
*/
199
199
var animationKeywords = {
200
- 'alternate' : 1 ,
201
- 'alternate-reverse' : 1 ,
202
- 'backwards' : 1 ,
203
- 'both' : 1 ,
204
- 'ease' : 1 ,
205
- 'ease-in' : 1 ,
206
- 'ease-in-out' : 1 ,
207
- 'ease-out' : 1 ,
208
- 'forwards' : 1 ,
209
- 'infinite' : 1 ,
210
- 'linear' : 1 ,
211
- 'none' : Infinity , // No matter how many times you write none, it will never be an animation name
212
- 'normal' : 1 ,
213
- 'paused' : 1 ,
214
- 'reverse' : 1 ,
215
- 'running' : 1 ,
216
- 'step-end' : 1 ,
217
- 'step-start' : 1 ,
218
- 'initial' : Infinity ,
219
- 'inherit' : Infinity ,
220
- 'unset' : Infinity ,
200
+ '$ alternate' : 1 ,
201
+ '$ alternate-reverse' : 1 ,
202
+ '$ backwards' : 1 ,
203
+ '$ both' : 1 ,
204
+ '$ ease' : 1 ,
205
+ '$ ease-in' : 1 ,
206
+ '$ ease-in-out' : 1 ,
207
+ '$ ease-out' : 1 ,
208
+ '$ forwards' : 1 ,
209
+ '$ infinite' : 1 ,
210
+ '$ linear' : 1 ,
211
+ '$ none' : Infinity , // No matter how many times you write none, it will never be an animation name
212
+ '$ normal' : 1 ,
213
+ '$ paused' : 1 ,
214
+ '$ reverse' : 1 ,
215
+ '$ running' : 1 ,
216
+ '$ step-end' : 1 ,
217
+ '$ step-start' : 1 ,
218
+ '$ initial' : Infinity ,
219
+ '$ inherit' : Infinity ,
220
+ '$ unset' : Infinity ,
221
221
} ;
222
222
223
223
var didParseAnimationName = false ;
@@ -230,12 +230,12 @@ function localizeAnimationShorthandDeclValueNodes(nodes, context) {
230
230
var shouldParseAnimationName = false ;
231
231
232
232
if ( ! didParseAnimationName && value && validIdent . test ( value ) ) {
233
- if ( value in animationKeywords ) {
234
- parsedAnimationKeywords [ value ] = ( value in parsedAnimationKeywords )
235
- ? ( parsedAnimationKeywords [ value ] + 1 )
233
+ if ( '$' + value in animationKeywords ) {
234
+ parsedAnimationKeywords [ '$' + value ] = ( '$' + value in parsedAnimationKeywords )
235
+ ? ( parsedAnimationKeywords [ '$' + value ] + 1 )
236
236
: 0 ;
237
237
238
- shouldParseAnimationName = ( parsedAnimationKeywords [ value ] >= animationKeywords [ value ] ) ;
238
+ shouldParseAnimationName = ( parsedAnimationKeywords [ '$' + value ] >= animationKeywords [ '$' + value ] ) ;
239
239
} else {
240
240
shouldParseAnimationName = true ;
241
241
}
0 commit comments