mirror of https://github.com/sveltejs/svelte
Merge pull request #1631 from sveltejs/gh-1618
encapsulate local styles inside global onespull/1636/head
commit
65aae85fed
@ -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