Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gradient with a single stop</title>
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<meta name="assert" content="Tests that gradient with a single color stop renders the expected solid color">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<style>
body {
background: #fff;
}
div {
width: 100px;
height: 100px;
position: absolute;
}
#fail {
background: red;
}
#test {
background-image: conic-gradient(green);
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<div id="fail"></div>
<div id="test"></div>
</body>
</html>