<!DOCTYPE html>

<html>
<head>
  <style type="text/css" media="screen">
    .box {
      display: inline-block;
      height: 120px;
      width: 200px;
      margin: 10px;
      border: 1px solid black;
      background-repeat: no-repeat;
    }

    .gradient1 {
      background-image: -webkit-radial-gradient(ellipse closest-corner, white, black);
      background-image: -moz-radial-gradient(ellipse closest-corner, white, black);
    }

    .gradient2 {
      background-image: -webkit-radial-gradient(50px 50%, circle closest-side, white, black);
      background-image: -moz-radial-gradient(50px 50%, circle closest-side, white, black);
    }
    
    .gradient3 {
      background-image: -webkit-radial-gradient(20px 50px, ellipse closest-corner, white, black);
      background-image: -moz-radial-gradient(20px 50px, ellipse closest-corner, white, black);
    }

    .gradient4 {
      background-image: -webkit-radial-gradient(20% 20%, circle closest-corner, white, black);
      background-image: -moz-radial-gradient(20% 20%, circle closest-corner, white, black);
    }

    .gradient5 {
      background-image: -webkit-radial-gradient(circle cover, red, green, blue);
      background-image: -moz-radial-gradient(circle cover, red, green, blue);
    }

    .gradient6 {
      background-image: -webkit-radial-gradient(left, circle cover, red, green 30%, blue);
      background-image: -moz-radial-gradient(left, circle cover, red, green 30%, blue);
    }

    .gradient7 {
      background-image: -webkit-radial-gradient(ellipse cover, red, green 80px, blue);
      background-image: -moz-radial-gradient(ellipse cover, red, green 80px, blue);
    }

    .gradient8 {
      background-image: -webkit-radial-gradient(circle cover, red 20%, green, blue 150%);
      background-image: -moz-radial-gradient(circle cover, red 20%, green, blue 150%);
    }

    .gradient9 {
      background-image: -webkit-radial-gradient(20% 20%, circle closest-corner, red -50%, green, blue 150%);
      background-image: -moz-radial-gradient(20% 20%, circle closest-corner, red -50%, green, blue 150%);
    }

  </style>
  <script type="text/javascript" charset="utf-8">
    if (window.testRunner) {
      var dumpPixels = true;
      testRunner.dumpAsText(dumpPixels);
    }
  </script>
</head>
<body>

  <div class="gradient1 box"></div>
  <div class="gradient2 box"></div>
  <div class="gradient3 box"></div>
  <br>
  <div class="gradient4 box"></div>
  <div class="gradient5 box"></div>
  <div class="gradient6 box"></div>
  <br>
  <div class="gradient7 box"></div>
  <div class="gradient8 box"></div>
  <div class="gradient9 box"></div>

</body>
</html>
