Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-images/gradient/gradient-single-stop-longer-hue-hsl-002.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Gradient in HSL space</title> <meta name="fuzzy" content="maxDifference=0-8;totalPixels=0-18000"> <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"> <link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation"> <meta name="assert" content="Tests that a single-stop longer-hue gradient renders a solid color, for various stop positions"> <link rel="match" href="gradient-single-stop-longer-hue-hsl-002-ref.html"> <style> body { background: #fff; } div { width: 200px; height: 50px; margin: 10px; background-image: linear-gradient(to right in hsl longer hue, red var(--pos) var(--pos)); } </style> </head> <body> <div style="--pos: 0%"></div> <div style="--pos: 25%"></div> <div style="--pos: 50%"></div> <div style="--pos: 75%"></div> <div style="--pos: 100%"></div> </body> </html>
/css/css-images/gradient/gradient-single-stop-longer-hue-hsl-002-ref.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Gradient in HSL space - reference</title> <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com"> <style> body { background: #fff; } div { width: 200px; height: 50px; margin: 10px; background-color: red; } </style> </head> <body> <div style="--pos: 0%"></div> <div style="--pos: 25%"></div> <div style="--pos: 50%"></div> <div style="--pos: 75%"></div> <div style="--pos: 100%"></div> </body> </html>