1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/canvas/726951-shadow-clips-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +<!doctype html> 1.5 +<head> 1.6 + 1.7 +<body> 1.8 + <canvas id="mycanvas" width="200" height="200"></canvas> 1.9 + 1.10 + <script type="text/javascript"> 1.11 + var cx = document.getElementById('mycanvas').getContext('2d'); 1.12 + cx.beginPath(); 1.13 + cx.rect(10, 10, 50, 50); 1.14 + cx.clip(); 1.15 + cx.beginPath(); 1.16 + cx.rect(0, 0, 50, 50); 1.17 + cx.shadowColor = "black"; 1.18 + cx.shadowOffsetX = 10; 1.19 + cx.shadowOffsetY = 10; 1.20 + cx.fill(); 1.21 + </script>