ajstarks / svgo

Go Language Library for SVG generation
Other
2.15k stars 170 forks source link

Support embedded style #31

Closed yangzh closed 7 years ago

yangzh commented 8 years ago

SVGo is nice, however, for my use, I cannot find support for embedded CSS.

The closest thing I can find is SVG.Script(), I guess we should have SVG.Style(), that add a CSS section inside a DEF section: supporting CSS is also part of SVG 1.1 spec.

ajstarks commented 8 years ago

Question: do you want to just embed raw CSS, or provide some API?

yangzh commented 8 years ago

Currently I'm interested in embeding raw CSS, and will be happy if svgo can add that.

Not sure what you mean by API, but that can delay, I guess.

ajstarks commented 7 years ago

See revision 19107c6 and f4dea3d