OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .target { |
| 4 display: inline-block; |
| 5 width: 100px; |
| 6 height: 100px; |
| 7 background-color: red; |
| 8 } |
| 9 </style> |
| 10 <div class="target" style="-webkit-filter: url(#noLightDiffuse); filter: url(#no
LightDiffuse)"></div> |
| 11 <div class="target" style="-webkit-filter: url(#noLightSpecular); filter: url(#n
oLightSpecular)"></div> |
| 12 <svg height="0" color-interpolation-filters="sRGB"> |
| 13 <filter id="noLightDiffuse" x="0" y="0" width="1" height="1"> |
| 14 <feDiffuseLighting lighting-color="blue"/> |
| 15 <feColorMatrix values="1 0 0 0 0, |
| 16 0 1 0 0 0.5, |
| 17 0 0 1 0 0, |
| 18 0 0 0 1 1"/> |
| 19 </filter> |
| 20 |
| 21 <filter id="noLightSpecular" x="0" y="0" width="1" height="1"> |
| 22 <feSpecularLighting lighting-color="blue"/> |
| 23 <feColorMatrix values="1 0 0 0 0, |
| 24 0 1 0 0 0.5, |
| 25 0 0 1 0 0, |
| 26 0 0 0 1 1"/> |
| 27 </filter> |
| 28 </svg> |
OLD | NEW |