mirror of https://github.com/sveltejs/svelte
encapsulate local styles inside global ones - fixes #1618
parent
6012c965ac
commit
7eaf5dca4d
@ -0,0 +1 @@
|
||||
div .foo.svelte-xyz{color:red}div>.foo.svelte-xyz{font-weight:bold}
|
@ -0,0 +1,11 @@
|
||||
<p class='foo'>red/bold</p>
|
||||
|
||||
<style>
|
||||
:global(div) .foo {
|
||||
color: red;
|
||||
}
|
||||
|
||||
:global(div) > .foo {
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue