Trouble with rectangle style
epointal opened this issue · 2 comments
epointal commented
All the tag rect
are replaced by path
during compression.
Then the style on rect
must be replace by style on path
.
If I add, for example, this style in source:
a:hover path,
a:hover rect{
stroke: rgb(140,2,9);
}
The minification remove the style on the path
, because there is no path in source, and after change all the rect
in path
.
rejas commented
I'd think this is a problem with https://github.com/svg/svgo and not this library since we just call it and dont make any svg optimiaztions ourself. Could you open an issue over at https://github.com/svg/svgo ?
epointal commented
I look at this. Thanks