improved text-decoration: overline accuracy

This commit is contained in:
MoyuScript
2012-12-30 16:46:31 +02:00
parent ed58f990ae
commit 587a6f609b
2 changed files with 2 additions and 2 deletions

View File

@ -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