fskpf/svg2roughjs

Paths don't seem to get their colors from CSS

ygra opened this issue · 3 comments

ygra commented

E.g.:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" version="1.0">
<path style="fill: none; stroke: red; stroke-width: 1.5;" d="M10,10 90 90 10 90 90 19z"/>
</svg>

image image

Perhaps other shapes as well?

This particular pattern happens in Graphviz SVG exports.

ygra commented

Didn't this work before? I'm fairly sure I've seen it working already.

fskpf commented

Thought so as well. The getComputedStyle should pick up these CSS inline styles. But I guess this is easy to debug and fix.

ygra commented

Seems to be correct again?