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

@ -2,9 +2,13 @@
<clipPath id="a">
<path d="..."/>
</clipPath>
<path d="..."/>
<g clip-path="url(#a)">
<path d="..." transform="scale(.2)"/>
</g>
<g mask="url(#a)">
<path d="..." transform="scale(.2)"/>
</g>
</svg>
@@@
@ -13,7 +17,11 @@
<clipPath id="a">
<path d="..."/>
</clipPath>
<path d="..."/>
<g clip-path="url(#a)">
<path d="..." transform="scale(.2)"/>
</g>
<g mask="url(#a)">
<path d="..." transform="scale(.2)"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 391 B

After

Width:  |  Height:  |  Size: 587 B