Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-modified.html

Issue 1886063002: Make canvas filters use the font size in effect when the filter is set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-modified.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-modified.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-modified.html
index 76cb332455eef8c59c50aea0c7e92a0bb53b3398..3f673310c76333cdc8bea7c070461cbe60073e00 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-modified.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-modified.html
@@ -9,9 +9,11 @@
<script>
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
-ctx.filter = 'url(#blur)';
+ctx.font = '20px sans-serif';
+ctx.filter = 'drop-shadow(0em 1em green) url(#blur)';
ctx.fillStyle = '#0f0';
ctx.fillRect(20, 20, 20, 20);
+ctx.font = '30px sans-serif';
document.getElementById('blurElement').setAttribute('stdDeviation', '0, 5');
ctx.fillRect(60, 20, 20, 20);
</script>

Powered by Google App Engine
This is Rietveld 408576698