Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

stroke="currentColor" #120

Closed
JoKalliauer opened this issue Dec 26, 2017 · 1 comment
Closed

stroke="currentColor" #120

JoKalliauer opened this issue Dec 26, 2017 · 1 comment

Comments

@JoKalliauer
Copy link
Contributor

Processiong https://commons.wikimedia.org/wiki/File:O_Canada_Lilypond.svg with:

$svgcleaner O_Canada_Lilypond.svg output.svg

leads to white instead of black lines because it removes:
stroke="currentColor"

minimal working example:
min.svg.txt

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'https://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
<svg height="157mm" viewBox="-2.185 0 110.6 89.34" width="194.4mm" xmlns="https://www.w3.org/2000/svg">
 <g stroke="currentColor">
  <path d="m.05 0h99.48" transform="translate(8.536 16.11)"/>
  <path d="m.05 0h99.48" transform="translate(8.536 15.11)"/>
  <path d="m.05 0h99.48" transform="translate(8.536 14.11)"/>
 </g>
</svg>
@RazrFalcon
Copy link
Owner

Technically, I should skip such files completely, because currentColor is UA-defined and can be anything.

Will think about what can be done here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants