mirror of https://github.com/sveltejs/svelte
Merge pull request #1556 from kaisermann/fix-prefixed-animation-property
Fix prefixed animation name replacementpull/1558/head
commit
3560b8616f
@ -1,7 +0,0 @@
|
||||
import { Node } from '../interfaces';
|
||||
|
||||
export default function isKeyframesNode(node: Node): boolean {
|
||||
return ['', '-webkit-', '-moz-', '-o-'].some(
|
||||
prefix => node.name === `${prefix}keyframes`
|
||||
);
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
export default function(name: string): string {
|
||||
return name.replace(/^-((webkit)|(moz)|(o)|(ms))-/, '');
|
||||
}
|
@ -1 +1 @@
|
||||
@keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}@-webkit-keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}@-moz-keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}@-o-keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}.animated.svelte-xyz{animation:svelte-xyz-why 2s}.also-animated.svelte-xyz{animation:not-defined-here 2s}
|
||||
@keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}@-webkit-keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}@-moz-keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}@-o-keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}.animated.svelte-xyz{-webkit-animation:svelte-xyz-why 2s;animation:svelte-xyz-why 2s}.also-animated.svelte-xyz{-webkit-animation:not-defined-here 2s;animation:not-defined-here 2s}
|
Loading…
Reference in new issue