meerk40t / svgelements

SVG Parsing for Elements, Paths, and other SVG Objects.
MIT License
133 stars 29 forks source link

Failure to process CSS class as referenced within Illustrator #103

Closed tatarize closed 3 years ago

tatarize commented 3 years ago
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><defs><style>.cls-1,.cls-2{fill:none;stroke-miterlimit:10;}.cls-1{stroke:blue;}.cls-2{stroke:red;}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon points="56.59 67.4 39.86 57.28 23.01 67.22 26.34 45.99 12.83 30.88 31.62 27.88 40.12 8.6 48.41 27.97 67.17 31.17 53.5 46.14 56.59 67.4"/><circle class="cls-1" cx="40" cy="40" r="35"/><circle class="cls-2" cx="40" cy="40" r="39.5"/></g></g></svg>

Illustrator has a bit more overt CSS handler and here the class= like handling fails or the style class in the conjoined classes or overwritten additional values to the already established classes or a combination of several of these fails to correctly set the fill to none.