summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/filter-grayscale-005.html
blob: 0aa4a3b6bdc0c8e0e3a907789d22ad2bad81a215 (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
27
28
29
30
<!doctype html>
<html lang="en">
<!-- Submitted from TestTWF Paris -->
	<head>
		<title>CSS Filter Test: apply a filter to a div with background-color</title>
		<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
		<link rel="help" href="http://www.w3.org/TR/filter-effects-1/#FilterFunction">
		<link rel="match" href="filter-grayscale-ref.html">
		<meta name="assert" content="grayscale syntax (300%, clamp to 1)">
		<style type="text/css">
			.testzone{
				position: relative;
			}
			.box{
				background-color: blue;
				height: 30px;
				width: 30px;
			}
			.filter{
				filter: grayscale(300%);
			}
		</style>
	</head>
	<body>
		<p>The test passes if the little box looks grey.</p>
		<div class="testzone">
			<div class="box filter"></div>
		</div>
	</body>
</html>