Skip to content

Commit 27a44c3

Browse files
committed
SVG CSS test
1 parent 6731e91 commit 27a44c3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/examples/barchart/BarChart.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@
1515
1616
</script>
1717

18+
<style>
19+
svg text {
20+
fill: red;
21+
}
22+
</style>
23+
1824
<!-- we use svelte's in/out transitions for entering and leaving dom elements,
1925
and vanilla css transitions for retained elements that change. the
2026
#each block means we create an svg <circle> for each element of data -->
2127
<svg>
22-
<text cx="50%" cy ="50%">Hello world!</text>
28+
<text x="50" y="50">Hello world!</text>
2329
</svg>

0 commit comments

Comments
 (0)