wpt / css / css-images / gradient / gradient-decreasing-hue-lch.html

Status: FAIL | Duration: 26ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-images/gradient/gradient-decreasing-hue-lch.html

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Gradient in LCH space</title>
    <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 'decreasing' hue renders the expected gradient">
    <meta name="fuzzy" content="maxDifference=0-14;totalPixels=0-23400">
    <link rel="match" href="gradient-decreasing-hue-lch-ref.html">
    <style>
        body {
            background: #fff;
        }

        div {
            width: 200px;
            height: 100px;
            margin: 10px;
        }

        div.a {
            background-image: linear-gradient(to right in lch decreasing hue,
                                              lch(50% 100% 0deg),
                                              lch(50% 100% 80deg));
        }

        div.b {
            background-image: linear-gradient(to right in lch decreasing hue,
                                              lch(50% 100% 80deg),
                                              lch(50% 100% 0deg));
        }

        div.c {
            background-image: linear-gradient(to right in lch decreasing hue,
                                              lch(50% 100% 0deg),
                                              lch(50% 100% 270deg));
        }

        div.d {
            background-image: linear-gradient(to right in lch decreasing hue,
                                              lch(50% 100% 270deg),
                                              lch(50% 100% 0deg));
        }
    </style>
</head>

<body>
    <div class=a></div>
    <div class=b></div>
    <div class=c></div>
    <div class=d></div>
</body>
</html>

/css/css-images/gradient/gradient-decreasing-hue-lch-ref.html

<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Gradient in LCH space</title>
    <link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
    <style>
        body {
            background: #fff;
        }

        div {
            width: 200px;
            height: 100px;
            margin: 10px;
        }

        div.a {
            background-image: linear-gradient(to right in lch decreasing hue,
                                              lch(50% 100% 360deg),
                                              lch(50% 100% 290deg),
                                              lch(50% 100% 220deg),
                                              lch(50% 100% 150deg),
                                              lch(50% 100% 80deg));
        }

        div.b {
            background-image: linear-gradient(to right in lch decreasing hue,
                                              lch(50% 100% 80deg),
                                              lch(50% 100% 60deg),
                                              lch(50% 100% 40deg),
                                              lch(50% 100% 20deg),
                                              lch(50% 100% 0deg));
        }

        div.c {
            background-image: linear-gradient(to right in lch decreasing hue,
                                              lch(50% 100% 360deg),
                                              lch(50% 100% 330deg),
                                              lch(50% 100% 300deg),
                                              lch(50% 100% 270deg));
        }

        div.d {
            background-image: linear-gradient(to right in lch decreasing hue,
                                              lch(50% 100% 270deg),
                                              lch(50% 100% 180deg),
                                              lch(50% 100% 90deg),
                                              lch(50% 100% 0deg));
        }
    </style>
</head>

<body>
    <div class=a></div>
    <div class=b></div>
    <div class=c></div>
    <div class=d></div>
</body>
</html>