Merge branch 'gh-3135' of https://github.com/btk5h/svelte into btk5h-gh-3135

pull/3150/head
Rich Harris 5 years ago
commit bff7dace5b

@ -315,7 +315,14 @@ export default class Stylesheet {
leave: (node: Node) => {
if (node.type === 'Rule' || node.type === 'Atrule') stack.pop();
if (node.type === 'Atrule') current_atrule = stack[stack.length - 1] as Atrule;
if (node.type === 'Atrule') {
current_atrule = null;
for (let i = stack.length - 1; i >= 0; i--) {
if (stack[i] instanceof Atrule) {
current_atrule = stack[i] as Atrule;
}
}
}
}
});
} else {

@ -0,0 +1,11 @@
<div></div>
<style>
div {
@apply --funky-div;
}
div {
}
</style>
Loading…
Cancel
Save