Guest User

FirefoxのタブアイコンをFx4以降っぽくするfilter用svg、Fx6でアイコンが明るくなるバグを確認、9だと大

a guest
Sep 12th, 2011
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.89 KB | None | 0 0
  1. <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="0" height="0">
  2.   <defs>
  3.     <filter id="fx4ize">
  4.       <feColorMatrix type="matrix" in="SourceGraphic" color-interpolation-filters="sRGB"
  5.        values="0 0 0 0 0.08
  6.                0 0 0 0 0.12
  7.                0 0 0 0 0.16
  8.                0 0 0 1 0.00" result="edge" />
  9.  
  10.       <feColorMatrix type="matrix" in="SourceGraphic"
  11.        values="0 0 0 0.00 1
  12.                0 0 0 0.00 1
  13.                0 0 0 0.00 1
  14.                0 0 0 0.25 0" result="glow" />
  15.       <feOffset in="glow" dy="1" result="offsetGlow" />
  16.       <feGaussianBlur in="glow" stdDeviation="1" result="gaussGlow" />
  17.  
  18.       <feColorMatrix type="matrix" in="SourceGraphic"
  19.        values="0 0 0 1 0
  20.                0 0 0 1 0
  21.                0 0 0 1 0
  22.                0 0 0 1 0" result="alpha" />
  23.  
  24.       <feMorphology operator="erode" in="alpha" radius="1" result="inset" />
  25.  
  26.       <feColorMatrix type="matrix" in="SourceGraphic"
  27.        values="0.213 0.715 0.072 0 0
  28.                0.213 0.715 0.072 0 0
  29.                0.213 0.715 0.072 0 0
  30.                0 0 0 1 0.00" result="gray" />
  31.  
  32.       <feComposite in="gray" in2="inset" operator="in" result="comp" />
  33.  
  34.       <feColorMatrix type="matrix" in="comp" color-interpolation-filters="sRGB"
  35.        values="0 0.62 0 0 0.08
  36.                0 0.64 0 0 0.12
  37.                0 0.66 0 0 0.16
  38.                0 0.00 0 1 0.00" result="inner" />
  39.  
  40.       <feMerge>
  41.         <feMergeNode in="gaussGlow" />
  42.         <feMergeNode in="offsetGlow" />
  43.         <feMergeNode in="edge" />
  44.         <feMergeNode in="inner" />
  45.       </feMerge>
  46.     </filter>
  47.     <filter id="grayscale">
  48.       <feColorMatrix type="matrix" in="SourceGraphic"
  49.        values="0.213 0.715 0.072 0 0
  50.                0.213 0.715 0.072 0 0
  51.                0.213 0.715 0.072 0 0
  52.                0 0 0 1 0.00" />
  53.     </filter>
  54.   </defs>
  55. </svg>
Advertisement
Add Comment
Please, Sign In to add comment