mirror of https://github.com/sveltejs/svelte
parent
17000e38f6
commit
fe9a68d071
@ -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