39 lines
735 B
HTML
39 lines
735 B
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.box {
|
|
display: inline-block;
|
|
height: 200px;
|
|
width: 250px;
|
|
margin: 10px;
|
|
border: 1px solid black;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.gradient1 {
|
|
background-image: radial-gradient(50% 50% at center, black, white);
|
|
}
|
|
|
|
/* Should have the 3rd white ring touching both edges. */
|
|
.gradient2 {
|
|
background-image: repeating-radial-gradient(20% 20% at center, black, white, black);
|
|
}
|
|
|
|
</style>
|
|
<script>
|
|
if (window.testRunner) {
|
|
var dumpPixels = true;
|
|
testRunner.dumpAsText(dumpPixels);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="gradient1 box"></div>
|
|
<div class="gradient2 box"></div>
|
|
|
|
</body>
|
|
</html>
|