yWorks / svg2pdf.js

A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
MIT License
654 stars 101 forks source link

Element with fill="none" takes the color of the following element #67

Closed TorsteinHonsi closed 5 years ago

TorsteinHonsi commented 5 years ago

Describe the bug When an element with fill="none" is followed by an element with a fill, the blank element gets that fill. The same happens with fill="transparent", but not with fill="rgba(0,0,0,0)".

Using svg2pdf version 1.3.0 and jspdf version 2.0.0.

To Reproduce See https://jsfiddle.net/highcharts/4u28to50/

Desktop (please complete the following information):

HackbrettXXX commented 5 years ago

Fixed.