Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty style tag not removed #1226

Closed
wenerme opened this issue Mar 5, 2020 · 1 comment
Closed

empty style tag not removed #1226

wenerme opened this issue Mar 5, 2020 · 1 comment

Comments

@wenerme
Copy link

wenerme commented Mar 5, 2020

I think this should be removed

    <defs>
        <style/>
    </defs>

from

<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" class="icon" viewBox="0 0 1024 1024">
    <defs>
        <style/>
    </defs>
    <path fill="#555" d="M883.832 211.353l-309-176.02L510.593 0l-64.241 35.332-321.204 181.802L75.039 245.4v531.273l61.028 34.69 351.398 199.146L510.592 1024l64.24-35.332L885.76 812.005l61.029-34.69V246.043zM479.756 932.136L200.951 774.103a73.235 73.235 0 0011.563-37.902 75.162 75.162 0 00-73.877-75.162V317.35l279.448 157.39a93.15 93.15 0 0064.241 106.64zm-33.405-510.073L169.473 264.03 446.35 106.64a73.235 73.235 0 00128.482 0l278.805 158.675-278.805 156.748a93.15 93.15 0 00-128.482 0zM880.62 661.039a75.804 75.804 0 00-75.805 75.804 73.235 73.235 0 0012.206 38.545L542.07 932.136V582.023a93.15 93.15 0 0064.24-107.283l275.594-157.39v344.331z"/>
</svg>

SVGO version 1.3.2

Config

{
  "plugins": [
    {
      "removeAttrs": {
        "attrs": "data-.*"
      }
    },
    {
      "sortAttrs": {}
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants