mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: Ensure resizeImage's canvas has at least 1px of width and height (#2409)
* ensure resizeImage canvas has > 0 width, height * add tests for sliver background images
This commit is contained in:
@ -9,6 +9,10 @@
|
||||
display: block;
|
||||
background:url("../../assets/image.jpg") center center;
|
||||
}
|
||||
.sliver div {
|
||||
background:url("../../assets/bg-sliver.png") center center;
|
||||
background-size: 650px auto;
|
||||
}
|
||||
|
||||
.vertical {
|
||||
float: right;
|
||||
@ -57,5 +61,8 @@
|
||||
<div style='background-size: auto;'></div>
|
||||
</div>
|
||||
<div class="container" style="padding: 10px; background-size: contain; background-origin: content-box; background-clip: content-box"></div>
|
||||
<div class="sliver">
|
||||
<div></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user