layout/reftests/css-gradients/linear-mix-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/css-gradients/linear-mix-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     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(120,20,300,20);
    1.12 +  grad.addColorStop(0, '#0000ff');
    1.13 +  grad.addColorStop(1, '#000000');
    1.14 +
    1.15 +  ctx.fillStyle = grad;
    1.16 +  ctx.fillRect(0,0,300,300);
    1.17 +
    1.18 +  ctx = document.getElementById('canvas2').getContext('2d');
    1.19 +
    1.20 +  grad = ctx.createLinearGradient(30,300,30,0);
    1.21 +  grad.addColorStop(0, '#00ff00');
    1.22 +  grad.addColorStop(1, '#000000');
    1.23 +
    1.24 +  ctx.fillStyle = grad;
    1.25 +  ctx.fillRect(0,0,300,300);
    1.26 +
    1.27 +  document.documentElement.removeAttribute('class');
    1.28 +}
    1.29 +</script>
    1.30 +</head>
    1.31 +<body onload="doDraw();">
    1.32 +<canvas id="canvas" width="300" height="300" style="position: absolute; top: 30px; left: 30px;"></canvas>
    1.33 +<br/><br/>
    1.34 +<canvas id="canvas2" width="300" height="300" style="position: absolute; top: 360px; left: 30px;"></canvas>
    1.35 +</body>
    1.36 +</html>
    1.37 +

mercurial