mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix #517
This commit is contained in:
parent
ed299b3db1
commit
60619dca72
2
dist/html2canvas.js
vendored
2
dist/html2canvas.js
vendored
@ -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;
|
||||
};
|
||||
|
2
dist/html2canvas.min.js
vendored
2
dist/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
};
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user