Want to share your CSS expertise with others? Apply to the MDN Fellowship by April 1! http://mzl.la/MDNFellowship


Revision 13 of filter

  • Revision slug: CSS/filter
  • Revision title: filter
  • Revision id: 13
  • Created:
  • Creator: grendel
  • Is current revision? No
  • Comment Added new compatibility table with a guess on IE support; 67 words added, 10 words removed

Revision Content

{{ CSSRef() }}



  • {{ Xref_cssinitial() }}: none
  • Applies to: graphics and container elements
  • {{ Xref_cssinherited() }}: no
  • Percentages: n/a
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}:


filter: url(svg-url#element-id) 




.target { filter: url(#c1); }

.anothertarget { filter: url(resources.svg#c1); }


Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{ CompatUnknown() }} {{ CompatUnknown() }} 5.5 {{ CompatUnknown() }} {{ CompatUnknown() }}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}

See also

Revision Source

<p>{{ CSSRef() }}</p>
<p> </p>
<ul> <li>{{ Xref_cssinitial() }}: none</li> <li>Applies to: graphics and container elements</li> <li>{{ Xref_cssinherited() }}: no</li> <li>Percentages: n/a</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}:</li>
<pre class="eval">filter: url(svg-url#element-id) 
<p> </p>
<pre>.target { filter: url(#c1); }

.anothertarget { filter: url(resources.svg#c1); }
<ul> <li><a class="external" href="http://www.w3.org/TR/2000/03/WD-SVG-20000303/filters.html" title="http://www.w3.org/TR/2000/03/WD-SVG-20000303/filters.html">Filter Effects</a></li> <li><a class="external" href="http://www.w3.org/TR/css3-roadmap/#svg" title="http://www.w3.org/TR/css3-roadmap/#svg">CSS 3 SVG</a></li> <li><a class="external" href="http://www.w3.org/Graphics/SVG/" title="http://www.w3.org/Graphics/SVG/">SVG</a></li>
<h3 name="Browser_Compatibility">Browser compatibility</h3>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>5.5</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody>
<div id="compat-mobile">
<table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody>
<h3>See also</h3>
<ul> <li>{{ Cssxref("mask") }}, {{ Cssxref("filter") }}</li> <li><a class="internal" href="/En/Applying_SVG_effects_to_HTML_content" title="En/Applying SVG effects to HTML content">Applying SVG effects to HTML content</a></li> <li><a class="internal" href="/en/SVG" title="En/SVG">SVG</a></li>
Revert to this revision