diff --git a/src/renderer/CanvasRenderer.js b/src/renderer/CanvasRenderer.js index 7363ac0..572ee08 100644 --- a/src/renderer/CanvasRenderer.js +++ b/src/renderer/CanvasRenderer.js @@ -235,6 +235,11 @@ export default class CanvasRenderer implements RenderTarget { text.bounds.top + text.bounds.height ); }); + + this.ctx.shadowColor = ''; + this.ctx.shadowOffsetX = 0; + this.ctx.shadowOffsetY = 0; + this.ctx.shadowBlur = 0; } else { this.ctx.fillText( text.text, diff --git a/tests/reftests/text/shadow.html b/tests/reftests/text/shadow.html index f4e43a4..063a51d 100644 --- a/tests/reftests/text/shadow.html +++ b/tests/reftests/text/shadow.html @@ -50,6 +50,18 @@ testing with transparent testing with low opacity + +
+

Hello world!

+
Sample Div with Border
+
Sample Div with Border
+
Sample Div with Border
+
Sample Div with Border
+
Sample Div with Border
+
Sample Div with Border
+
Sample Div with Border
+
+

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore.