Skip to content

Commit

Permalink
Don't remove same transform in inner element (removeUnknownsAndDefaul…
Browse files Browse the repository at this point in the history
…ts). Fix svg#549
  • Loading branch information
GreLI committed Dec 25, 2016
1 parent d0a511f commit 8b290bf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/removeUnknownsAndDefaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ exports.fn = function(item, params) {
// useless overrides
(
params.uselessOverrides &&
attr.name !== 'transform' &&
attrsInheritable.indexOf(attr.name) > -1 &&
item.parentNode.computedAttr(attr.name, attr.value)
)
Expand Down
17 changes: 17 additions & 0 deletions test/plugins/removeUnknownsAndDefaults.10.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8b290bf

Please sign in to comment.