Closed
Description
Reproducible with the following code.
var SVGO = require('svgo');
var svgo = new SVGO();
svgo.optimize('<g fill="#fff"><text y="20" fill="#000">Foo!</text></g>', function(res) { console.log(res); });
Output:
<g fill="#fff"><text y="20">Foo!</text></g>
Desired output:
<g fill="#fff"><text y="20" fill="#000">Foo!</text></g>
In that case, the fill shadows the fill performed by the <g>
, which has the effect of making the text invisible, when it should be black.
(Obviously, this is a contrived example given as the reduced test-case of a larger image.)
Metadata
Metadata
Assignees
Labels
No labels