133
rated 0 times
[
139]
[
6]
/ answers: 1 / hits: 19882
/ 11 Years ago, wed, september 4, 2013, 12:00:00
Problem
When using .toDataURL()
method of HTML5 <canvas>
element the background-color
property of the element is not applied to the picture.
Question
Is this happenning because background-color
is not actually a part of canvas
, but a DOM styling? If so, or anything else, what can be a workaround for this?
Fiddle
Fiddle to play with here. The base64 string is logged to console.
Additional info
The canvas is created from the svg
using https://code.google.com/p/canvg/
More From » html