mirror of https://github.com/sveltejs/svelte
Merge pull request #3531 from sveltejs/gh-3522
only use setAttribute with SVG spread propspull/3538/head
commit
686aa0bdc5
@ -0,0 +1,7 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<svg height="400" width="400">
|
||||||
|
<rect x="50" y="50" width="100" height="75" fill="#ff0000"></rect>
|
||||||
|
</svg>
|
||||||
|
`
|
||||||
|
};
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
const style = { fill: '#ff0000', x: '50', y: '50', width: '100', height: '75'};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<svg width="400" height="400">
|
||||||
|
<rect {...style}/>
|
||||||
|
</svg>
|
Loading…
Reference in new issue