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

Support style element #184

Open
jncn opened this issue Jul 26, 2021 · 0 comments
Open

Support style element #184

jncn opened this issue Jul 26, 2021 · 0 comments

Comments

@jncn
Copy link

jncn commented Jul 26, 2021

Description of the Issue
Browsers support the SVG style element, see: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/style.
Unfortunately SwiftSVG throws an error when trying to parse such files:

style is unsupported. For a complete list of supported elements, see the `allSupportedElements` variable in the `SVGParserSupportedElements` struct. Click through on the `elementName` variable name to see the SVG tag name.

Sample SVG

<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
  <style>
    circle {
      fill: gold;
      stroke: maroon;
      stroke-width: 2px;
    }
  </style>

  <circle cx="5" cy="5" r="4" />
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant