wpt / css / css-images / gradient / gradient-analogous-missing-components-001.html

Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-images/gradient/gradient-analogous-missing-components-001.html

<!doctype html>
<meta charset="utf-8">
<title>Gradient analogous missing components carry forward logic tests</title>
<link rel="author" title="CGQAQ" href="mailto:m.jason.liu@gmail.com">
<link rel="author" title="一丝" href="mailto:yiorsi@gmail.com">
<link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation">
<meta name="assert" content="Tests that analogous missing components logic works.">
<meta name="fuzzy" content="maxDifference=0-2;totalPixels=0-17000">
<link rel="match" href="gradient-analogous-missing-components-001-ref.html">
<style>
    .test {
        margin: 50px;
        width: 200px;
        height: 50px;
        border: 1px solid black;
    }

    .test1 {
        background: linear-gradient(90deg in srgb, hsl(60deg 0 50%), yellow);
    }

    .test2 {
        background: linear-gradient(90deg in srgb, hsl(20deg 0 50%), yellow);
    }

    .test3 {
        background: linear-gradient(90deg in srgb, hsl(60deg none 50%), yellow);
    }

    .test4 {
        background: linear-gradient(90deg in srgb, hsl(none 0 50%), yellow);
    }

    .test5 {
        background: linear-gradient(90deg in srgb, hsl(none none 50%), yellow);
    }
</style>

<div class="test test1"></div>
<div class="test test2"></div>
<div class="test test3"></div>
<div class="test test4"></div>
<div class="test test5"></div>

/css/css-images/gradient/gradient-analogous-missing-components-001-ref.html

<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Gradient analogous missing components carry forward logic tests</title>
    <link rel="author" title="CGQAQ" href="mailto:m.jason.liu@gmail.com">
    <link rel="author" title="一丝" href="mailto:yiorsi@gmail.com">
    <link rel="help" href="https://www.w3.org/TR/css-color-4/#interpolation">
    <style>
        .test {
            margin: 50px;
            width: 200px;
            height: 50px;
            border: 1px solid black;
            background: linear-gradient(90deg in srgb, hsl(0deg 0% 50%), yellow);
        }
    </style>
</head>
<body>
    <div class="test"></div>
    <div class="test"></div>
    <div class="test"></div>
    <div class="test"></div>
    <div class="test"></div>
</body>
</html>