1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00
Files
svgo/test/plugins/addClassesToSVGElement.03.svg
Bogdan Chadkin 98c023bdb0 Drop node.class usages (#1533)
We are gonna remove everything outside of xast.
Here's dropped class prop.
2021-08-21 19:42:32 +03:00

18 lines
242 B
XML

Should avoid adding existing classes
===
<svg xmlns="http://www.w3.org/2000/svg" class="mySvg">
test
</svg>
@@@
<svg xmlns="http://www.w3.org/2000/svg" class="mySvg size-big">
test
</svg>
@@@
{"classNames":["mySvg","size-big"]}