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.