mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
Don't move transform attribute to elems if there is linked object to transform. Fixes #162
This commit is contained in:
@ -35,6 +35,7 @@ exports.fn = function(item) {
|
||||
item.isElem('g') &&
|
||||
item.hasAttr('transform') &&
|
||||
!item.isEmpty() &&
|
||||
!item.someAttr(function(attr) { return ~attr.value.indexOf('url(') }) &&
|
||||
item.content.every(function(inner) {
|
||||
return inner.isElem(pathElems);
|
||||
})
|
||||
|
Reference in New Issue
Block a user