class attribute text suggests that text colours can be modified with the CSS color property

http://www.w3.org/TR/SVG/styling.html#ClassAttribute

contains this...

In an SVG user agent that supports CSS
styling<http://www.w3.org/TR/SVG/styling.html>,
the following CSS style rules would tell visual user agents to display
informational messages in green, warning messages in yellow, and error
messages in red:

text.info    { color: green }
text.warning { color: yellow }
text.error   { color: red }


But text in SVG is coloured using the fill (or stroke) properties. The
color CSS keyword should be replaced by fill here.

Robert.

Received on Thursday, 4 July 2013 10:55:52 UTC