Skip to content

Commit 861a18f

Browse files
committed
Fix Chrome background-repeat parse error
1 parent cf15c4a commit 861a18f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ _html2canvas.Parse = function (images, options) {
787787
function renderBackgroundRepeating(el, bounds, ctx, image, imageIndex) {
788788
var backgroundSize = _html2canvas.Util.BackgroundSize(el, bounds, image, imageIndex),
789789
backgroundPosition = _html2canvas.Util.BackgroundPosition(el, bounds, image, imageIndex, backgroundSize),
790-
backgroundRepeat = getCSS(el, "backgroundRepeat").split(",");
790+
backgroundRepeat = getCSS(el, "backgroundRepeat").split(",").map(function(value) { return value.trim(); });
791791

792792
image = resizeImage(image, backgroundSize);
793793

0 commit comments

Comments
 (0)