mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-29 00:22:05 +01:00
Merge branch 'gh-3135' of https://github.com/btk5h/svelte into btk5h-gh-3135
This commit is contained in:
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 @@
|
||||
div.svelte-xyz{@apply --funky-div;}
|
@ -0,0 +1,11 @@
|
||||
<div></div>
|
||||
|
||||
<style>
|
||||
div {
|
||||
@apply --funky-div;
|
||||
}
|
||||
|
||||
div {
|
||||
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user