The strange thing about using CSS to style SVG elements is that only certain properties can be used, depending on the element. For instance, you can set the fill
on a <polygon>
, but not the points
.
The W3C has a list of properties that outlines which SVG properties can be manipulated by CSS.
Direct Link to Article — Permalink
List of SVG Properties You Can Manipulate with CSS is a post from CSS-Tricks