mirror of
https://github.com/svg/svgo.git
synced 2025-09-17 08:02:12 +03:00
- migrated to visitor plugin api - covered with tsdoc - added more test cases - restructured and simplified code
26 lines
456 B
XML
26 lines
456 B
XML
Move to group only inheritable attributes
|
|
|
|
===
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg">
|
|
<g attr1="val1">
|
|
<g attr2="val2">
|
|
text
|
|
</g>
|
|
<circle attr2="val2" attr3="val3"/>
|
|
<path d="..."/>
|
|
</g>
|
|
</svg>
|
|
|
|
@@@
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg">
|
|
<g attr1="val1">
|
|
<g attr2="val2">
|
|
text
|
|
</g>
|
|
<circle attr2="val2" attr3="val3"/>
|
|
<path d="..."/>
|
|
</g>
|
|
</svg>
|