mirror of https://github.com/sveltejs/svelte
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.
21 lines
256 B
21 lines
256 B
3 years ago
|
<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>
|