1
0
mirror of https://github.com/svg/svgo.git synced 2025-08-01 18:46:52 +03:00

Don't pass mask around transform in collapseGroups.

Fixes #572
This commit is contained in:
GreLI
2016-08-24 21:43:14 +03:00
parent 1162dac878
commit 44d6958db2
2 changed files with 9 additions and 1 deletions

View File

@ -52,7 +52,7 @@ exports.fn = function(item) {
var inner = g.content[0];
if (inner.isElem() && !inner.hasAttr('id') && (
!g.hasAttr('clip-path') ||
!g.hasAttr('clip-path') && !g.hasAttr('mask') ||
inner.isElem('g') && !g.hasAttr('transform') && !inner.hasAttr('transform')
)) {
g.eachAttr(function(attr) {