"added tests for getColorStopsFromGradient"

This commit is contained in:
MoyuScript
2012-03-05 21:04:25 +00:00
parent 8350f278fc
commit cd008b6c05
2 changed files with 102 additions and 8 deletions

View File

@ -38,12 +38,12 @@ _html2canvas.Generate.getColorStopsFromGradient = function(css, bounds) {
case '-webkit-linear-gradient':
gradient = {
type: 'linear',
x0: 0,
y0: 0,
x1: 0,
y1: 0,
colorStops: []
type: 'linear',
x0: 0,
y0: 0,
x1: 0,
y1: 0,
colorStops: []
};
// get coordinates