Skip to content

Commit e5129c1

Browse files
committed
Fix inappropriate modification of animation keywords
1 parent 43cf324 commit e5129c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,12 @@ function localizeAnimationShorthandDeclValues(decl, context) {
243243
};
244244

245245
const didParseAnimationName = false;
246-
const parsedAnimationKeywords = {};
246+
let parsedAnimationKeywords = {};
247247
const valueNodes = valueParser(decl.value).walk((node) => {
248+
/* If div-token appeared (represents as comma ','), a possibility of an animation-keywords should be reflesh. */
249+
if (node.type === 'div') {
250+
parsedAnimationKeywords = {};
251+
}
248252
const value =
249253
node.type === 'word' ? node.value.toLowerCase() : null;
250254

0 commit comments

Comments
 (0)