--- title: clip-path slug: Web/SVG/Attribute/clip-path tags: - SVG - SVG Attribute translation_of: Web/SVG/Attribute/clip-path --- {{SVGRef}} L'attribut **`clip-path`** permet d'appliquer un détourage à un élément. > **Note :** `clip-path` étant un attribut de présentation, il peut être utilisé comme propriété CSS. Cet attribut peut être appliqué sur tous les éléments, en revanche il n'aura d'effet que sur les éléments suivants: {{SVGElement('a')}}, {{SVGElement('circle')}}, {{SVGElement('clipPath')}}, {{SVGElement('ellipse')}}, {{SVGElement('g')}}, {{SVGElement('glyph')}}, {{SVGElement('image')}}, {{SVGElement('line')}}, {{SVGElement('marker')}}, {{SVGElement('mask')}}, {{SVGElement('path')}}, {{SVGElement('pattern')}}, {{SVGElement('polygon')}}, {{SVGElement('polyline')}}, {{SVGElement('rect')}}, {{SVGElement('svg')}}, {{SVGElement('symbol')}}, {{SVGElement('text')}}, {{SVGElement('use')}} ## Exemple ```css hidden html,body,svg { height:100% } ``` ```html ``` {{EmbedLiveSample('Exemple', '100%', 200)}} ## Notes d'usage
Valeur |
{{cssxref('url')}} | [ {{cssxref('basic-shape')}} ||
<geometry-box> ] | none
|
---|---|
Valeur par défaut | none |
Animation | Oui |