blob: a183a1d8463108ef8cec79d8b5e09186cff1fdc9 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
.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);
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
}
</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>
</body>
</html>