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

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

/css/filter-effects/filter-contrast-001.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-001-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 100%, it will leave unchanged.">
    <style type="text/css">

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

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

/css/filter-effects/filter-contrast-001-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: green;
       }
    </style>
</head>
<body>
    <p>The test passes if there is a green box.</p>

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