summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/fecolormatrix-type.html
blob: 990225d0113c39f1f3ccd249dfbb11ed28989c47 (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
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
    <title>Filter Effects: Test feColorMatrix with type matrix</title>
    <link rel="author" title="Takaki Yasuma" href="mailto:takakiyasuma@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/#feColorMatrixElement">
    <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#element-attrdef-fecolormatrix-type">
    <link rel="match" href="fecolormatrix-type-ref.html">
    <meta name="assert" content="If the test runs, you should see a auqamarine colored rectangle.">
    <style type="text/css">

       div{
	       width: 200px;
	       height: 200px;
	       background-color: red;
	       filter: url(#sepia);
       }

    </style>
</head>

<body>

	<p>You should see a aquamarine colored rectangle.</p>

	<div></div>

	<svg>
		<filter id="sepia" color-interpolation-filters="sRGB">
			<feColorMatrix type="matrix" values="0.393 0.189 0.349 0 0
	                   0.686 0.168 0.272 0 0
	                   0.534 0.131 0 0 0
	                   0 0 0 1 0"/>
		</filter>
	</svg>

</body>

</html>