Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-images/gradient/gradient-powerless-hue-oklch.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Gradient powerless hue component converting tests - hwb</title> <link rel="author" title="CGQAQ" href="mailto:m.jason.liu@gmail.com"> <link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation"> <meta name="assert" content="Tests that powerless hue component logic works."> <link rel="match" href="gradient-powerless-hue-oklch-ref.html"> <meta name=fuzzy content="maxDifference=1;totalPixels=0-500"> <style> .test { display: flex; align-items: center; width: 200px; height: 50px; position: relative; border: 1px solid black; margin: 10px; } .info { position: absolute; right: -10px; transform: translateX(100%); } .oklch { /* Expected */ background-image: linear-gradient(to right in oklch, red, oklch(86.64396175234369% 0.295 142.4953450414439 / 0) ); } .hwb { background-image: linear-gradient(to right in oklch, red, hwb(120deg 0% 0% / 0%) ); } .rgba { background-image: linear-gradient(to right in oklch, red, rgba(0, 255, 0, 0) ); } .hsl { background-image: linear-gradient(to right in oklch, red, hsl(120deg 100% 50% / 0%) ); } .color { background-image: linear-gradient(90deg in oklch, red, color(srgb 0 1 0 / 0) ); } </style> </head> <p>They should be the same as the first box.</p> <ol> <li class="test oklch"><div class="info">oklch() Expected</div></li> <li class="test hwb"><div class="info">hwb()</div></li> <li class="test rgba"><div class="info">rgba()</div></li> <li class="test hsl"><div class="info">hsl()</div></li> <li class="test color"><div class="info">color()</div></li> </ol> </html>
/css/css-images/gradient/gradient-powerless-hue-oklch-ref.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Gradient powerless hue component converting tests - hwb</title> <link rel="author" title="CGQAQ" href="mailto:m.jason.liu@gmail.com"> <link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation"> <style> .test { display: flex; align-items: center; width: 200px; height: 50px; position: relative; border: 1px solid black; margin: 10px; /* Expected */ background-image: linear-gradient(to right in oklch, red, oklch(86.64396175234369% 0.295 142.4953450414439 / 0) ); } .info { position: absolute; right: -10px; transform: translateX(100%); } </style> </head> <p>They should be the same as the first box.</p> <ol> <li class="test"><div class="info">oklch() Expected</div></li> <li class="test"><div class="info">hwb()</div></li> <li class="test"><div class="info">rgba()</div></li> <li class="test"><div class="info">hsl()</div></li> <li class="test"><div class="info">color()</div></li> </ol> </html>