Setting SVG background via CSS
This isn't an inkscape question, merely SVG. I'm embedding SVG images created by GraphViz in an XHTML page. With CSS I have a black-on-white color scheme and a white-on-black. For the latter I have g[class="node"] > * { fill: none; stroke: white; } /* nodes */ g[class="edge"] path { fill: none; stroke: white; } /* edge line */ g[class="edge"] polygon { fill: white; stroke: none; } /* edge arrow */ to set the lines to white. However, mozilla defaults to a white background for the embedded SVG element. I've tried things like svg { fill: black; background: black; background-color: black; } but I haven't been able to guess the correct attribute. I couldn't find the appropriate part of the SVG spec, but I've never been good with W3C specs. Can anyone help me out here? References: http://twb.ath.cx/wiki/SandBox.xhtml http://twb.ath.cx/share/core-light.css http://twb.ath.cx/share/core-dark.css http://twb.ath.cx/~twb/doc/wikisrc/SandBox http://twb.ath.cx/~twb/src/misc/emacs-wiki-graph.el -- -trent How much to buy this book? This is a library, not a bookstore. Alright, what happens if I lose it? You have to pay for it. Alright, I'd like to borrow this book. Oh! Where did it go?
participants (1)
-
Trent Buck