Closed rctneil closed 10 years ago
You have to hide the SVG using a different technique than with display:none
. Something like:
position: absolute;
width:0;
height:0;
That worked to enable the gradients in Chrome but still fails in Firefox.
Sorry than I don't have an idea
That SO answer stated that "In Firefox gradients and patterns don't work if they are within a symbol. To workaround this simply move the gradient definition outside the symbol element."
Couldn't grunt-svgstore
do this as part of it's tasks?
@FWeinb Any thoughts on this at all?
It would be interesting to look into the spec to verify if this is the intended behaviour. I will move gradients and patterns out of the symbol tag.
@FWeinb Do you have any thoughts on when this may be implemented along with https://github.com/FWeinb/grunt-svgstore/issues/50 ?
Will be in 0.3.2
I'm having the same issue as to what is described here: http://stackoverflow.com/questions/12867704/svg-linear-gradient-does-not-work-in-firefox
Is there a way SVGStore can help fix this?