clip-path

  • Revision slug: CSS/clip-path
  • Revision title: clip-path
  • Revision id: 28010
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 5 words removed

Revision Content

{{ CSSRef() }}

Summary

<style type="text/css"></style>
  • {{ Xref_cssinitial() }}: See The initial clipping path: 'overflow' and 'clip' properties
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: no
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}:

Syntax

clip-path: <uri> | none | inherit

Values

 uri : <uri> | none | inherit

 

Examples

.target { clip-path: url(#c1); }

.anothertarget { clip-path: url(resources.svg#c1); }

Specifications

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ 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>
<h2 id="Summary">Summary</h2>
<nobr>
<style type="text/css"><![CDATA[.cssprop {
  display:table;
  padding: 0.4em;
  border-left:0.15em solid;
  background-color:#eeeeff
}
.cssprop li {
 display:table-row;
 padding: 3px;
 margin:0;
}
.cssprop li dfn {
  display:table-cell;
  padding: 0 5px;
  border-bottom: none;
  cursor:inherit;
}

]]></style>
<ul class="cssprop"> <li><dfn>{{ Xref_cssinitial() }}:</dfn> See The initial clipping path: 'overflow' and 'clip' properties</li> <li><dfn>Applies to:</dfn> all elements</li> <li><dfn>{{ Xref_cssinherited() }}:</dfn> no</li> <li><dfn>Media:</dfn> {{ Xref_cssvisual() }}</li> <li><dfn>{{ Xref_csscomputed() }}:</dfn></li>
</ul></nobr><h2 id="Syntax">Syntax</h2>
<pre class="eval">clip-path: &lt;uri&gt; | none | inherit
</pre>
<h2 id="Values">Values</h2>
<p> <strong>uri </strong>: &lt;uri&gt; | none | inherit</p>
<p> </p>
<h2 id="Examples">Examples</h2>
<pre>.target { clip-path: url(#c1); }

.anothertarget { clip-path: url(resources.svg#c1); }
</pre>
<h2 id="Specifications">Specifications</h2>
<ul> <li><a class="external" href="http://www.w3.org/TR/2000/03/WD-SVG-20000303/masking.html#ClipPathElement" title="http://www.w3.org/TR/2000/03/WD-SVG-20000303/masking.html#ClipPathElement">Clipping, Masking and Compositing</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>
</ul>
<h2 id="Browser_Compatibility" 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>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</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>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<h2 id="See_also">See also</h2>
<ul> <li>{{ Cssxref("clip-rule") }}, {{ 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>
</ul>
Revert to this revision