From 983294e27260750ceccf557525b74df3fb10229b Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 1 Mar 2017 10:55:45 -0500 Subject: [PATCH] keyframes are case sensitive --- src/generators/shared/processCss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generators/shared/processCss.js b/src/generators/shared/processCss.js index b6e483db3b..91ca055d31 100644 --- a/src/generators/shared/processCss.js +++ b/src/generators/shared/processCss.js @@ -14,7 +14,7 @@ export default function processCss ( parsed, code ) { if ( expression.type === 'Identifier' ) { const newName = `svelte-${parsed.hash}-${expression.name}`; code.overwrite( expression.start, expression.end, newName ); - keyframes.set( expression.name.toLowerCase(), newName ); + keyframes.set( expression.name, newName ); } }); } else if ( node.children ) { @@ -56,7 +56,7 @@ export default function processCss ( parsed, code ) { if ( property === 'animation' || property === 'animation-name' ) { block.value.children.forEach( block => { if ( block.type === 'Identifier' ) { - const name = block.name.toLowerCase(); + const name = block.name; if ( keyframes.has( name ) ) { code.overwrite( block.start, block.end, keyframes.get( name ) ); }