SVG-to-PDFKit icon indicating copy to clipboard operation
SVG-to-PDFKit copied to clipboard

Css takes precedence over attributes and inline style

Open eriese opened this issue 2 years ago • 0 comments

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;
          }

eriese avatar Dec 13 '22 16:12 eriese