mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
removed jQuery.css dependancy and few general CSS bug fixes
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
http://www.twitter.com/niklasvh
|
||||
|
||||
Released under MIT License
|
||||
*/
|
||||
*/
|
||||
|
||||
_html2canvas.Generate = {};
|
||||
|
||||
@@ -30,7 +30,7 @@ _html2canvas.Generate.Gradient = function(src, bounds) {
|
||||
canvas.width = bounds.width;
|
||||
canvas.height = bounds.height;
|
||||
|
||||
|
||||
|
||||
function getColors(input) {
|
||||
var j = -1,
|
||||
color = '',
|
||||
@@ -51,7 +51,7 @@ _html2canvas.Generate.Gradient = function(src, bounds) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ( (tmp = src.match(/-webkit-linear-gradient\((.*)\)/)) !== null ) {
|
||||
|
||||
position = tmp[1].split( ",", 1 )[0];
|
||||
|
||||
Reference in New Issue
Block a user