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

Side by Side Diff: LayoutTests/fast/canvas/canvas-filter-units-off-screen.html

Issue 1194733002: Adding the 'filter' context attribute to 2D canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Failure -> ImageOnlyFailure Created 5 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <body>
2 <script>
3 var canvas = document.createElement('canvas');
4 canvas.width = 500;
5 canvas.height = 500;
6 canvas.style.width = '100px';
7 canvas.style.height = '100px';
8 var ctx = canvas.getContext('2d');
9 ctx.filter = 'drop-shadow(0 50px black)';
Stephen White 2015/06/25 18:30:27 Nit: 0 -> 0px
10 ctx.fillStyle = '#0f0';
11 ctx.fillRect(125, 125, 250, 200);
12 document.body.appendChild(canvas);
13 </script>
14 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698