1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/canvas/image-rendering-test.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/licenses/publicdomain/ 1.8 + --> 1.9 +<html reftest-zoom="2" class="reftest-wait"> 1.10 +<head> 1.11 + <title>test image-rendering</title> 1.12 + <style> 1.13 + canvas { position:absolute;left:0px;top:0px; } 1.14 + </style> 1.15 + <script type="text/javascript"> 1.16 + document.addEventListener("MozReftestInvalidate", draw, false); 1.17 + 1.18 + function draw() { 1.19 + var canvas = document.getElementById("canvas"); 1.20 + var ctx = canvas.getContext("2d"); 1.21 + ctx.fillStyle = "rgb(255,0,0)"; 1.22 + ctx.fillRect(25,25,100,100); 1.23 + ctx.fillStyle = "rgb(0,255,0)"; 1.24 + ctx.fillRect(25,25,50,50); 1.25 + document.documentElement.removeAttribute('class'); 1.26 + } 1.27 + </script> 1.28 +</head> 1.29 +<body> 1.30 + <canvas style="image-rendering: -moz-crisp-edges; " id="canvas" width="300" height="300"></canvas> 1.31 +</body> 1.32 +</html>