@@ -197,27 +197,27 @@ function localizeAnimationShorthandDeclValueNodes(nodes, context) {
197197 animation name of infinite from the second.
198198 */
199199 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 ,
221221 } ;
222222
223223 var didParseAnimationName = false ;
@@ -230,12 +230,12 @@ function localizeAnimationShorthandDeclValueNodes(nodes, context) {
230230 var shouldParseAnimationName = false ;
231231
232232 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 )
236236 : 0 ;
237237
238- shouldParseAnimationName = ( parsedAnimationKeywords [ value ] >= animationKeywords [ value ] ) ;
238+ shouldParseAnimationName = ( parsedAnimationKeywords [ '$' + value ] >= animationKeywords [ '$' + value ] ) ;
239239 } else {
240240 shouldParseAnimationName = true ;
241241 }
0 commit comments