gradient-single-stop-longer-hue-oklch.html (838B)
1 <!doctype html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="utf-8"> 6 <title>Gradient in OKLCH space</title> 7 <meta name="fuzzy" content="maxDifference=0-15;totalPixels=0-90000"> 8 <link rel="author" title="Ashley Hale" href="mailto:ahale@mozilla.com"> 9 <link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation"> 10 <meta name="assert" content="Tests that a single-stop longer-hue gradient just renders a solid color"> 11 <link rel="match" href="gradient-single-stop-longer-hue-oklch-ref.html"> 12 <style> 13 body { 14 background: #fff; 15 } 16 17 div { 18 width: 300px; 19 height: 300px; 20 background-image: linear-gradient(in oklch longer hue 0deg, oklch(0.62796 0.25768 29.23388) 0 0); 21 } 22 </style> 23 </head> 24 25 <body> 26 <div></div> 27 </body> 28 </html>