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

21 lines
256 B

<div>text</div>
<div class='foo'>text<span>text</span></div>
<span>text</span>
<style>
div:global(.bar) {
color: red;
}
.foo:global(.bar) {
color: red;
}
.foo:global(.bar) span {
color: red;
}
.bar:global(.foo) {
color: blue;
}
</style>