| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <style> |
| .box { |
| display: inline-block; |
| height: 250px; |
| width: 200px; |
| margin: 10px; |
| border: 1px solid black; |
| background-repeat: no-repeat; |
| } |
| |
| .gradient1 { |
| /* Green should coincide with the edge of the box, with blue fill (buggy in CG). */ |
| background-image: radial-gradient(circle closest-corner at left, red, green 150px, blue); |
| } |
| |
| .gradient2 { |
| /* Fill should be orange (buggy in CG). */ |
| background-image: radial-gradient(circle closest-corner at left, red, green 150px, blue, orange 101%); |
| } |
| |
| .gradient3 { |
| background-image: radial-gradient(ellipse farthest-corner at -100px center, black, white); |
| } |
| |
| .gradient4 { |
| background-image: radial-gradient(ellipse closest-corner at -100px center, black, white); |
| } |
| |
| .gradient5 { |
| background-image: radial-gradient(at bottom right, black, white); |
| } |
| |
| .gradient6 { |
| background-image: radial-gradient(ellipse closest-side at 50% 20%, black, white); |
| } |
| |
| .gradient7 { |
| background-image: radial-gradient(ellipse closest-corner at -100px center, black, 15%, white); |
| } |
| |
| .gradient8 { |
| background-image: radial-gradient(at bottom right, black, 30%, white); |
| } |
| |
| .gradient9 { |
| background-image: radial-gradient(ellipse closest-side at 50% 20%, black, 90%, white); |
| } |
| |
| </style> |
| <script> |
| 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> |