layout/reftests/css-gradients/aja-linear-4-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-4-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     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(50, 0, 50, 200);
    1.13 +  grad.addColorStop(0, 'yellow');
    1.14 +  grad.addColorStop(0.5, 'blue');
    1.15 +  grad.addColorStop(1, '#0f0');
    1.16 +
    1.17 +  ctx.fillStyle = grad;
    1.18 +  ctx.fillRect(0,0,100,200);
    1.19 +
    1.20 +  document.documentElement.removeAttribute('class');
    1.21 +}
    1.22 +</script>
    1.23 +</head>
    1.24 +<body onload="doDraw();">
    1.25 +<canvas id="canvas" width="100" height="200"></canvas>
    1.26 +</body>
    1.27 +</html>

mercurial