test nested server-rendered styles

pull/154/head
Rich Harris 8 years ago
parent 7d672fdd78
commit 54d90b68e8

@ -0,0 +1,16 @@
<div>green: {{message}}</div>
<Two message='{{message}}'/>
<style>
div {
color: green;
}
</style>
<script>
import Two from './Two.html';
export default {
components: { Two }
};
</script>

@ -0,0 +1,7 @@
<div>blue: {{message}}</div>
<style>
div {
color: blue;
}
</style>

@ -0,0 +1,14 @@
div[svelte-4188175681], [svelte-4188175681] div {
color: red;
}
div[svelte-146600313], [svelte-146600313] div {
color: green;
}
div[svelte-1506185237], [svelte-1506185237] div {
color: blue;
}

@ -0,0 +1,5 @@
<div svelte-4188175681>red</div>
<div svelte-146600313>green: foo</div>
<div svelte-1506185237>blue: foo</div>
<div svelte-146600313>green: bar</div>
<div svelte-1506185237>blue: bar</div>

@ -0,0 +1,11 @@
div[svelte-4188175681], [svelte-4188175681] div {
color: red;
}
div[svelte-146600313], [svelte-146600313] div {
color: green;
}
div[svelte-1506185237], [svelte-1506185237] div {
color: blue;
}

@ -0,0 +1,5 @@
<div svelte-4188175681>red</div>
<div svelte-146600313>green: foo</div>
<div svelte-1506185237>blue: foo</div>
<div svelte-146600313>green: bar</div>
<div svelte-1506185237>blue: bar</div>

@ -0,0 +1,17 @@
<div>red</div>
<One message='foo'/>
<One message='bar'/>
<style>
div {
color: red;
}
</style>
<script>
import One from './One.html';
export default {
components: { One }
};
</script>
Loading…
Cancel
Save