linear-gradient-2.html (472B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>Linear gradient with all inferred positions</title> 4 <link rel="help" href="https://drafts.csswg.org/css-images-3/#coloring-gradient-line"> 5 <meta name="assert" content="Calculation of implicit gradient stops."> 6 <link rel="match" href="linear-gradient-ref.html"> 7 <style> 8 #gradient { 9 width: 400px; 10 height: 300px; 11 background-image: linear-gradient(to right, black, red, gold); 12 } 13 </style> 14 <div id="gradient"></div>