1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-31 07:44:22 +03:00

Fixed transform moving around the mask as well

This commit is contained in:
GreLI
2016-02-15 14:09:04 +03:00
parent 9cdb046383
commit 25fc738c03
2 changed files with 15 additions and 1 deletions

View File

@ -39,7 +39,7 @@ exports.fn = function(item) {
var intersection = {},
hasTransform = false,
hasClip = item.hasAttr('clip-path'),
hasClip = item.hasAttr('clip-path') || item.hasAttr('mask'),
intersected = item.content.every(function(inner) {
if (inner.isElem() && inner.hasAttr()) {
if (!Object.keys(intersection).length) {