blob: ae21c3c671c37935d40fbbe14411fef64afc5fc3 [file] [log] [blame]
<!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);
}
</style>
<script>
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>