wpt / css / filter-effects / filters-test-brightness-002.html

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

/css/filter-effects/filters-test-brightness-002.html

<!DOCTYPE html>
<html>
<head>
    <title>CSS Writing Modes Test: drop-shadow offset test</title>
    <link rel="author" title="Jun Ichikawa" href="mailto:jun1ka0@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-brightness">
    <link rel="match" href="filters-ref-brightness-002.html">
    <meta name="assert" content="This test verifies that the brightness shorthand works. Black rectangle must shown,
    when brightness set 0%.">
    <style type="text/css">
        div.brightness_zero {
            width: 200px;
            height: 200px;
            background-color: rgb(255, 0, 0);
            filter: brightness(0%);
        }
    </style>
</head>
<body>
    <p>You should see a black rectangle and no red.</p>
    <div class="brightness_zero"></div>

</body>
</html>

/css/filter-effects/filters-ref-brightness-002.html

<!DOCTYPE html>
<html>
<head>
    <title>CSS Reftest Reference</title>
    <link rel="author" title="Jun Ichikawa" href="mailto:jun1ka0@gmail.com">
    <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com">
    <style type="text/css">

        div.brightness_zero {
            width: 200px;
            height: 200px;
            background-color: rgb(0, 0, 0);
        }
    </style>
</head>
<body>
    <p>You should see a black rectangle and no red.</p>
    <div class="brightness_zero"></div>

</body>
</html>