1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-gradients/linear-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" 1.5 + class="reftest-wait"> 1.6 +<head> 1.7 +<script> 1.8 +function doDraw() { 1.9 + var ctx = document.getElementById('canvas').getContext('2d'); 1.10 + 1.11 + var grad = ctx.createLinearGradient(0,150,300,150); 1.12 + grad.addColorStop(0, 'red'); 1.13 + grad.addColorStop(1, 'rgb(100, 200, 0)'); 1.14 + grad.addColorStop(0.5, '#7777FF'); 1.15 + 1.16 + ctx.fillStyle = grad; 1.17 + ctx.fillRect(0,0,300,300); 1.18 + 1.19 + document.documentElement.removeAttribute('class'); 1.20 +} 1.21 +</script> 1.22 +</head> 1.23 +<body onload="doDraw();"> 1.24 +<canvas id="canvas" width="300" height="300"/> 1.25 +</body> 1.26 +</html> 1.27 +