diff --git a/src/svg-renderer.js b/src/svg-renderer.js index b0e8ef99..ee8024ab 100644 --- a/src/svg-renderer.js +++ b/src/svg-renderer.js @@ -308,7 +308,7 @@ class SvgRenderer { let largestStrokeWidth = 0; const collectStrokeWidths = domElement => { if (domElement.getAttribute) { - if (domElement.getAttribute('stroke')) { + if (domElement.getAttribute('stroke') && domElement.getAttribute('stroke') !== 'none') { largestStrokeWidth = Math.max(largestStrokeWidth, 1); } if (domElement.getAttribute('stroke-width')) {