OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 img { |
| 4 display: none; |
| 5 } |
| 6 canvas { |
| 7 width: 520px; |
| 8 height: 520px; |
| 9 } |
| 10 </style> |
| 11 <body> |
| 12 <img src="resources/html5.png"> |
| 13 <!-- Test that gpu accelerated canvases work with pixelated. --> |
| 14 <!-- Canvases should be overlaid at an offset. Only the middle one should be
blurred. --> |
| 15 <canvas class="canvas0" width="260" height="260"></canvas> |
| 16 </body> |
| 17 <script> |
| 18 // Ignore the render tree. |
| 19 if (window.testRunner) |
| 20 window.testRunner.dumpAsTextWithPixelResults(); |
| 21 |
| 22 function draw() { |
| 23 var ctx = document.getElementsByTagName("canvas")[0].getContext("2d") |
| 24 ctx.drawImage(document.getElementsByTagName("img")[0], 10, 10); |
| 25 } |
| 26 window.onload = draw; |
| 27 </script> |
OLD | NEW |