Skip to content

Commit bef6c15

Browse files
committed
more tests
1 parent 0dad618 commit bef6c15

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script>
2+
let { foo } = $props();
3+
</script>
4+
5+
{@render foo()}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
x.svelte-xyz + y:where(.svelte-xyz) {
3+
color: green;
4+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<script>
2+
import Child from './Child.svelte';
3+
</script>
4+
5+
<x></x>
6+
7+
<Child>
8+
{#snippet foo()}
9+
<y>this should be green</y>
10+
{/snippet}
11+
</Child>
12+
13+
<style>
14+
x + y {
15+
color: green;
16+
}
17+
</style>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
x.svelte-xyz + z:where(.svelte-xyz) {
3+
color: green;
4+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<x></x>
2+
3+
<slot>
4+
<y>fallback content</y>
5+
</slot>
6+
7+
<z>this should be green if the slot fallback is not rendered</z>
8+
9+
<style>
10+
x + z {
11+
color: green;
12+
}
13+
</style>

0 commit comments

Comments
 (0)