mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
improved text-decoration: overline accuracy
This commit is contained in:
@ -168,7 +168,7 @@ _html2canvas.Parse = function (images, options) {
|
||||
renderRect(ctx, bounds.left, Math.round(bounds.top + metrics.baseline + metrics.lineWidth), bounds.width, 1, color);
|
||||
break;
|
||||
case "overline":
|
||||
renderRect(ctx, bounds.left, bounds.top, bounds.width, 1, color);
|
||||
renderRect(ctx, bounds.left, Math.round(bounds.top), bounds.width, 1, color);
|
||||
break;
|
||||
case "line-through":
|
||||
// TODO try and find exact position for line-through
|
||||
|
Reference in New Issue
Block a user