This commit is contained in:
Niklas von Hertzen 2015-01-26 22:55:10 +02:00
parent ed299b3db1
commit 60619dca72
4 changed files with 5 additions and 5 deletions

2
dist/html2canvas.js vendored
View File

@ -1611,7 +1611,7 @@ NodeContainer.prototype.cssList = function(property, index) {
value = value[index || 0] || value[0] || 'auto';
value = value.trim().split(' ');
if (value.length === 1) {
value = [value[0], value[0]];
value = [value[0], isPercentage(value[0]) ? 'auto' : value[0]];
}
return value;
};

File diff suppressed because one or more lines are too long

View File

@ -121,7 +121,7 @@ NodeContainer.prototype.cssList = function(property, index) {
value = value[index || 0] || value[0] || 'auto';
value = value.trim().split(' ');
if (value.length === 1) {
value = [value[0], value[0]];
value = [value[0], isPercentage(value[0]) ? 'auto' : value[0]];
}
return value;
};

View File

@ -29,7 +29,7 @@
.container {
float: left;
border: 1px solid black;
width: 200px;
width: 150px;
height: 200px;
background-image: url(../../assets/image.jpg);
background-size: 34px;
@ -42,7 +42,7 @@
<div class="container"></div>
<div class="container" style="background-repeat: repeat-y"></div>
<div class="container" style="background-repeat: repeat-x"></div>
<div class="container" style="background-size: 150% auto"></div>
<div class="horizontal">
<div style='background-size: cover;'></div>
<div style='background-size: contain;'></div>