Problems with background images
See original GitHub issueHi, guys!
Thanks for your work, h2c is an awesome tool! I have one small issue on page: http://king.fi/site/ - background image from body { … background: #070707 url(…/img/bg.jpg) no-repeat 50% 0; doesn’t render. With simple calling of h2c:
html2canvas($('body'), {
allowTaint: false,
logging:true,
onrendered: function (canvas) {
document.body.appendChild(canvas);
}
});
and with your test console http://html2canvas.hertzen.com/screenshots.html I have the same results:
Original:
Rendered:
html2canvas: 0.4.0 MacOs 10.6 Chrome 29.0.1547.62
Thanks!
Issue Analytics
- State:
- Created 10 years ago
- Comments:56 (21 by maintainers)
Top Results From Across the Web
How to fix CSS background-image not working | HTML/CSS
1. Check that your CSS file is linked correctly in your HTML file. · 2. Make sure the image path is set correctly...
Read more >CSS Background image not loading
Try [CTRL] + [F5] to hard refresh the page within the browser. Maybe it's just a caching problem. And like Nikhil said: search...
Read more >Problem with background-image (resolved)
Anyone ever had a problem with the background image on a header disappearing when you add no-repeat? So,
Read more >CSS Background Image Not Working
CSS Background Image Not Working: How to Resolve and Avoid Bugs · Make Sure Your CSS File Is Properly Embedded in Your HTML...
Read more >Background image problems! - HTML & CSS
Hi Im new to web coding, I have read through the Build your own website book but now im stuck on my own...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i could not render background images and it seemed to be cover or contain background size, so i’ve changed line 350 in 0.4.1 version to:
topPos = isNaN(parseInt(bgposition[1], 10)) ? topPos : parseInt(bgposition[1], 10);
and it works!
Hi @gopiss,
Use corse option.