| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <style type="text/css" media="screen"> |
| .box { |
| display: inline-block; |
| height: 200px; |
| width: 250px; |
| margin: 10px; |
| border: 1px solid black; |
| background-repeat: no-repeat; |
| } |
| |
| .gradient1 { |
| background-image: -webkit-radial-gradient(center, 50% 50%, black, white); |
| background-image: -moz-radial-gradient(center, 50% 50%, black, white); |
| } |
| |
| .gradient2 { |
| background-image: -webkit-repeating-radial-gradient(center, 20% 20%, black, white, black); |
| background-image: -moz-repeating-radial-gradient(center, 20% 20%, black, white, black); |
| } |
| |
| </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> |
| |
| </body> |
| </html> |