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-global/input.svelte

21 lines
411 B

<style>
:global(input) + div { color: red; }
:global(input) ~ div { color: red; }
:global(input) + h1 { color: red; }
:global(input) ~ h1 { color: red; }
:global(input) + p { color: red; }
:global(input) ~ p { color: red; }
:global(input) + span { color: red; }
:global(input) ~ span { color: red; }
</style>
<h1>Hello!</h1>
<div>
<span>World!</span>
</div>
{#each [] as _}
<p />
{/each}