mirror of https://github.com/sveltejs/svelte
allow SVG elements to have scoped CSS - fixes #1224
parent
d9136d97ae
commit
b763714222
@ -0,0 +1,17 @@
|
|||||||
|
export default {
|
||||||
|
compileOptions: {
|
||||||
|
cascade: false
|
||||||
|
},
|
||||||
|
|
||||||
|
data: {
|
||||||
|
x: 'bar'
|
||||||
|
},
|
||||||
|
|
||||||
|
html: `
|
||||||
|
<svg>
|
||||||
|
<circle class="svelte-i03x00" cx=50 cy=50 r=50 />
|
||||||
|
<circle class="foo svelte-i03x00" cx=150 cy=50 r=50 />
|
||||||
|
<circle class="bar svelte-i03x00" cx=250 cy=50 r=50 />
|
||||||
|
</svg>
|
||||||
|
`
|
||||||
|
};
|
After Width: | Height: | Size: 168 B |
Loading…
Reference in new issue