layout/reftests/css-gradients/aja-linear-6-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/css-gradients/aja-linear-6-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!doctype html>
     1.5 +<!-- Derived from http://a-ja.net/newgrad.html -->
     1.6 +<html class="reftest-wait">
     1.7 +<head>
     1.8 +<script>
     1.9 +function doDraw() {
    1.10 +  var ctx = document.getElementById('canvas').getContext('2d');
    1.11 +
    1.12 +  var grad = ctx.createLinearGradient(20, 30, 80, 170);
    1.13 +  grad.addColorStop(0, 'yellow');
    1.14 +  grad.addColorStop(1, 'blue');
    1.15 +
    1.16 +  ctx.fillStyle = grad;
    1.17 +  ctx.fillRect(0,0,100,200);
    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="100" height="200"></canvas>
    1.25 +</body>
    1.26 +</html>

mercurial