wpt / css / filter-effects / filter-contrast-002.html

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

/css/filter-effects/filter-contrast-002.html

<!DOCTYPE html>
<html>
<head>
    <title>CSS Filter contrast: CSS contrast filter shotrhand</title>
    <link rel="author" title="Takeshi Kurosawa" href="mailto:taken.spc@gmail.com">
    <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com">
    <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#FilterProperty">
    <link rel="help" href="https://www.w3.org/TR/filter-effects-1/#funcdef-filter-contrast">
    <link rel="match" href="filter-contrast-002-ref.html">
    <meta name="assert" content="CSS contrast filter will apply a component transfer to the div element to adjust the
    contrast of the colors. Since contrast is 0%, it must be the completely gray.">
    <style type="text/css">

       div {
           width: 200px;
           height: 200px;
           background-color: red;
           filter: contrast(0%);
       }
    </style>
</head>
<body>
    <p>The test passes if there is a gray box and no red.</p>

    <div></div>
</body>
</html>

/css/filter-effects/filter-contrast-002-ref.html

<!DOCTYPE html>
<html>
<head>
    <title>CSS Reftest Reference</title>
    <link rel="author" title="Takeshi Kurosawa" href="mailto:taken.spc@gmail.com">
    <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com">
    <style type="text/css">
       div {
           width: 200px;
           height: 200px;
           background-color: #808080;
       }
    </style>
</head>
<body>
    <p>The test passes if there is a gray box and no red.</p>

    <div></div>
</body>
</html>