From 63fbe2cb7964fc49e5510273264b0bf740af6c52 Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Fri, 11 Jan 2013 19:51:53 +0200 Subject: [PATCH] Fix Chrome background-repeat parse error --- src/Parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parse.js b/src/Parse.js index e20c37c..401a30c 100644 --- a/src/Parse.js +++ b/src/Parse.js @@ -787,7 +787,7 @@ _html2canvas.Parse = function (images, options) { function renderBackgroundRepeating(el, bounds, ctx, image, imageIndex) { var backgroundSize = _html2canvas.Util.BackgroundSize(el, bounds, image, imageIndex), backgroundPosition = _html2canvas.Util.BackgroundPosition(el, bounds, image, imageIndex, backgroundSize), - backgroundRepeat = getCSS(el, "backgroundRepeat").split(","); + backgroundRepeat = getCSS(el, "backgroundRepeat").split(",").map(function(value) { return value.trim(); }); image = resizeImage(image, backgroundSize);