mirror of https://github.com/sveltejs/svelte
add CSS scoping classes when stringifying child nodes - fixes #1223
parent
dc4fdcf77e
commit
eae98f952d
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
cascade: false,
|
||||
|
||||
data: {
|
||||
dynamic: 'x'
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
.foo.svelte-xyz{color:red}.bar.svelte-xyz{font-style:italic}
|
@ -0,0 +1,2 @@
|
||||
<span class="foo svelte-xyz"><span class="bar svelte-xyz">text</span></span>
|
||||
<span class="foo svelte-xyz"><span class="bar svelte-xyz">x</span></span>
|
@ -0,0 +1,16 @@
|
||||
<span class='foo'>
|
||||
<span class='bar'>text</span>
|
||||
</span>
|
||||
|
||||
<span class='foo'>
|
||||
<span class='bar'>{{dynamic}}</span>
|
||||
</span>
|
||||
|
||||
<style>
|
||||
.foo {
|
||||
color: red;
|
||||
}
|
||||
.bar {
|
||||
font-style: italic;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue