gradient-longer-hue-hsl-013.html (917B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <meta charset="utf-8"> 4 <title>Gradient using "longer hue"</title> 5 <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"> 6 <link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation"> 7 <link rel="match" href="gradient-longer-hue-hsl-013-ref.html"> 8 <meta name="assert" content="Tests that gradient with 'longer hue' renders correctly"> 9 10 <style> 11 div { 12 margin: 20px 0px 20px 50px; 13 height: 40px; 14 width: 100px; 15 position: relative; 16 } 17 /* the colors here will have to be converted to the interpolation color space */ 18 .test1 { 19 background: linear-gradient(to right in hsl longer hue, red, black); 20 } 21 .test2 { 22 background: linear-gradient(to right in hsl longer hue, red, white); 23 } 24 .test3 { 25 background: linear-gradient(to right in hsl longer hue, red, transparent); 26 } 27 </style> 28 29 <div class="test1"></div> 30 <div class="test2"></div> 31 <div class="test3"></div>