forked from w3c/csswg-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilter-contrast-001.html
More file actions
28 lines (26 loc) · 1008 Bytes
/
filter-contrast-001.html
File metadata and controls
28 lines (26 loc) · 1008 Bytes
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
27
28
<!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="http://www.w3.org/TR/filter-effects-1/#funcdef-contrast">
<link rel="match" href="filter-contrast-001-ref.html">
<meta name="flags" content="">
<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>