Revision 14 of filter

  • Revision slug: CSS/filter
  • Revision title: filter
  • Revision id: 14
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment page display name changed to '-moz-filter'

Revision Content

Summary

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

Syntax

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

Examples

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

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

Specifications

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{ CompatUnknown() }} 3.5 (1.9.1) {{ CompatNo() }}[*] {{ CompatUnknown() }} {{ CompatUnknown() }}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}

{{ CompatUnknown() }}

[*] From Internet Explorer 5.5 to Internet Explorer 7.0 included, that browser implemented a non-standard filter property. The syntax was completely different from this one and is not documented here.

See also

Revision Source

<h2>Summary</h2>
<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>
</ul>
<h2>Syntax</h2>
<pre class="eval">filter: url(svg-url#element-id) 
</pre>
<h2>Examples</h2>
<pre>.target { filter: url(#c1); }

.anothertarget { filter: url(resources.svg#c1); }
</pre>
<h2>Specifications</h2>
<ul> <li><a class="link-https" href="https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/publish/Filters.html#FilterProperty" title="https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/publish/Filters.html#FilterProperty">Filter Effects 1.0</a><span class="external"> Working Draft</span></li>
</ul>
<h2 name="Browser_Compatibility">Browser compatibility</h2>
<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>3.5 (1.9.1)</td> <td>{{ CompatNo() }}[*]</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<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> <p>{{ CompatUnknown() }}</p> </td> </tr> </tbody> </table>
</div>
<p>[*] From Internet Explorer 5.5 to Internet Explorer 7.0 included, that browser implemented a non-standard <code>filter</code> property. The syntax was completely different from this one and is not documented here.</p>
<h2>See also</h2>
<ul> <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>The {{ Cssxref("mask") }} property</li> <li><a class="internal" href="/en/SVG" title="En/SVG">SVG</a></li>
</ul>
Revert to this revision