OLD | NEW |
1 <style> | 1 <style> |
2 .filtered { | 2 .filtered { |
3 -webkit-filter: url(#colormatrix); | 3 -webkit-filter: url(#colormatrix); |
4 filter: url(#colormatrix); | 4 filter: url(#colormatrix); |
5 background-color: green; | 5 background-color: green; |
6 width: 100px; | 6 width: 100px; |
7 height: 100px; | 7 height: 100px; |
8 margin: 0px; | 8 margin: 0px; |
9 -webkit-transform: translateZ(0); | 9 transform: translateZ(0); |
10 } | 10 } |
11 body { | 11 body { |
12 margin: 0px; | 12 margin: 0px; |
13 } | 13 } |
14 </style> | 14 </style> |
15 <body style="zoom: 50%;"> | 15 <body style="zoom: 50%;"> |
16 <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1"> | 16 <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1"> |
17 <defs> | 17 <defs> |
18 <filter id="colormatrix" color-interpolation-filters="sRGB" x="0%" y="0%" wi
dth="100%" height="100%"> | 18 <filter id="colormatrix" color-interpolation-filters="sRGB" x="0%" y="0%" wi
dth="100%" height="100%"> |
19 <feColorMatrix x="2" y="12" width="80" height="60"/> | 19 <feColorMatrix x="2" y="12" width="80" height="60"/> |
20 </filter> | 20 </filter> |
21 </defs> | 21 </defs> |
22 </svg> | 22 </svg> |
23 <div class="filtered"> | 23 <div class="filtered"> |
24 </div> | 24 </div> |
25 </body> | 25 </body> |
OLD | NEW |