Skip to content

SVG incorrect stroke/fill color parsing #169

Closed
@kayuri

Description

@kayuri

Some colors are not parsed/serialized correctly, e.g. lime:

Sample SVG:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
  <circle r="80" cx="240" cy="150" fill="blue"/>
  <rect width="200" height="160" x="140" y="70" fill="red !important"/>
  <rect width="200" height="160" x="140" y="70" fill="none" stroke="lime" stroke-width="4"/>
</svg>

Serialized into:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
  <circle r="80" cy="150" cx="240" fill="blue"/>
  <rect height="160" x="140" y="70" width="200" fill="black"/>
  <rect height="160" x="140" y="70" width="200" fill="none" stroke="black" stroke-width="4.0"/>
</svg>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions