Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-images/linear-gradient-2.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<title>Linear gradient with all inferred positions</title>
<meta name="assert" content="Calculation of implicit gradient stops.">
<link rel="match" href="linear-gradient-ref.html">
<style>
#gradient {
width: 400px;
height: 300px;
background-image: linear-gradient(to right, black, red, gold);
}
</style>
<div id="gradient"></div>