mirror of https://github.com/sveltejs/svelte
parent
b963e53fc9
commit
ee9d5ef850
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: allow global next to `&` for nesting
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
warnings: []
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
div.svelte-xyz {
|
||||
&.class{
|
||||
color: red;
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
<div class="svelte-xyz">
|
||||
</div>
|
||||
|
||||
<div class="class svelte-xyz">
|
||||
foo
|
||||
</div>
|
@ -0,0 +1,14 @@
|
||||
<style>
|
||||
div {
|
||||
&:global(.class){
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
|
||||
<div class="class">
|
||||
foo
|
||||
</div>
|
Loading…
Reference in new issue