summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/filter-contrast-003.html
blob: 3f799f3fa0848c31a5af2504a492a7d89a8c452c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<head>
    <title>CSS Filter contrast: Test for CSS contrast filter shorthand</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-003-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 200%, it will be less contrast.">
    <style type="text/css">
       div {
           width: 200px;
           height: 200px;
           background-color: #3f0000;
           filter: contrast(200%);
       }
    </style>
</head>
<body>
    <p>The test passes if there is a black box and no dark red.</p>

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