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

Side by Side Diff: LayoutTests/fast/canvas/canvas-shadow-source-in-expected.html

Issue 669123002: Fixed Shadow blur for transparent objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing virtual layout test to TestExpectations Created 6 years, 2 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 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Check shadow rendering rect and image with source-in.</title>
5 <style type="text/css">
6 canvas { border: 1px solid #999; }
7 </style>
8 </head>
9 <body>
10 <div>Test Rect</div>
11 <canvas id="canvas-for-color" width="200" height="200"></canvas>
12 <div>Test Image</div>
13 <canvas id="canvas-for-image" width="200" height="200"></canvas>
14 <script>
15 var canvas_color = document.getElementById("canvas-for-color");
16 var ctx_color = canvas_color.getContext("2d");
17 drawReference(ctx_color);
18
19 var canvas_image = document.getElementById("canvas-for-image");
20 var ctx_image = canvas_image.getContext("2d");
21 drawReference(ctx_image);
22
23 function drawReference(ctx) {
24 ctx.beginPath();
25 ctx.rect(100, 100, 150, 50);
26 ctx.clip();
27 ctx.shadowColor = 'teal';
28 ctx.shadowBlur = 10;
29 ctx.shadowOffsetX = -310;
30 ctx.fillStyle = 'teal';
31 ctx.fillRect(300, 0, 200, 200);
32 }
33 </script>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698