Skip to content

Problem With Style Applied to Multiple Classes #93

@johager

Description

@johager

Looks like SwiftDraw cannot handle styles like .b,.c{fill:#fff;} that apply to multiple classes.

Full SVG data is this:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66 66"><defs><style>.a{fill:#c31230;}.b,.c{fill:#fff;}.b{fill-rule:evenodd;}</style></defs><circle class="a" cx="33" cy="33" r="33"/><path class="b" d="M19.62,22.91H22c1.85,0,3.69,0,5.54,0a.87.87,0,0,1,1,.73Q31.37,32,34.23,40.38c.1.29.21.57.4,1.07L37,33.92l2.16-6.86c.65-2.08.41-2.82-1.43-4.11h7L35.85,49c-3.73-1-6.87-2.54-8.23-6.48-1.9-5.5-3.91-11-5.88-16.44a4.76,4.76,0,0,0-2.18-3Z"/><path class="c" d="M47.08,23.23h-.65v1.85h-.25V23.23h-.65V23h1.56Zm2.48,1.85H49.3V23.25h0l-.7,1.83h-.17l-.7-1.83h0v1.83h-.25V23h.47l.58,1.51h0L49.09,23h.47Z"/></svg>

Attaching screen shot with the above data decoded by SVGKit and SwiftDraw.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions