Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
tsayen committed Aug 3, 2015
1 parent 26c2ed4 commit 3a4b843
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions a.css

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions a.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions spec/dom-to-image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@


it('should render web fonts', function (done) {
// this.timeout(60000);
this.timeout(60000);
loadTestPage(
'fonts/regression.html',
'fonts/regression.css'
Expand All @@ -242,7 +242,7 @@
domtoimage.toImage(domNode, function (image) {
drawControlImage(image);
document.body.appendChild(image);
// console.log(image.src);
console.log(image.src);
//done();
});
})
Expand Down
2 changes: 1 addition & 1 deletion src/dom-to-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"use strict";

function copyProperties(style, node) {
for (var i = 0; i < style.length; i++) {
var propertyName = style[i];
for (var i = 0; i < style.length; i++) {
node.style.setProperty(
propertyName,
style.getPropertyValue(propertyName),
Expand Down

0 comments on commit 3a4b843

Please sign in to comment.