You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/css/samples/siblings-combinator-each-else/input.svelte

24 lines
348 B

<script>
let array = [];
</script>
<style>
.a + .b { color: green; }
.a + .c { color: green; }
.b + .d { color: green; }
.c + .d { color: green; }
/* no match */
.a + .d { color: green; }
.b + .c { color: green; }
</style>
<div class="a" />
{#each array as item}
<div class="b" />
{:else}
<div class="c" />
{/each}
<div class="d" />