SVG-to-PDFKit
SVG-to-PDFKit copied to clipboard
Css takes precedence over attributes and inline style
Expected behavior: precedence order of attributes, inline style, then css
//source.js line 1325
for (let i = 0; i < 3; i++) {
switch (i) {
case 0:
if (key !== 'transform') { // the CSS transform behaves strangely
value = this.css[keyInfo.css || key];
}
break;
case 1:
value = this.style[key];
break;
case 2:
value = this.attr(key);
break;
}