From e7f1d07cba1f78b72eb43bfcdabc262359c4991a Mon Sep 17 00:00:00 2001 From: SphinxKnight Date: Mon, 1 Nov 2021 07:45:47 +0100 Subject: Prepare SVG section for Markdown conversion (#2570) * Remove summary classes * Remove hidden classes out of pre * Remove spans * Remove notranslate class * Remove ids out of headings * missed 2 ids with regex * clean note and warning cards * fix headings errors * Fix dls and as * fix imgs * lint stuff (absolute urls, english links) * Temporarily readding file * delete inexisting doc in en-US with flaws * Fixes #2842 for SVG --- files/fr/web/svg/attribute/clip-path/index.html | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'files/fr/web/svg/attribute/clip-path/index.html') diff --git a/files/fr/web/svg/attribute/clip-path/index.html b/files/fr/web/svg/attribute/clip-path/index.html index a3ac7eba52..7aceae680c 100644 --- a/files/fr/web/svg/attribute/clip-path/index.html +++ b/files/fr/web/svg/attribute/clip-path/index.html @@ -10,14 +10,15 @@ translation_of: Web/SVG/Attribute/clip-path

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.

+
+

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

+ +
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
   <clipPath id="myClip" clipPathUnits="objectBoundingBox">
@@ -43,8 +44,7 @@ translation_of: Web/SVG/Attribute/clip-path
         clip-path="circle() view-box" />
 </svg>
-

{{EmbedLiveSample('topExample', '100%', 200)}}

-
+

{{EmbedLiveSample('exemple', '100%', 200)}}

Notes d'usage

@@ -70,9 +70,11 @@ translation_of: Web/SVG/Attribute/clip-path
une information supplémentaire pour dire comment une {{cssxref('basic-shape', 'forme CSS')}} est appliquée à un élément: fill-box indique d'utiliser la zone de sélection de l'objet ; stroke-box d'utiliser la zone de sélection de l'objet en prenant en plus le contour de l'élément; view-box d'utiliser le  document SVG parent.
-

Note: Pour plus d'informations sur la syntaxe de clip-path, voir la propriété CSS {{cssxref('clip-path')}}.

+
+

Note: Pour plus d'informations sur la syntaxe de clip-path, voir la propriété CSS {{cssxref('clip-path')}}.

+
-

Compatibilité des navigateurs

+

Compatibilité des navigateurs

{{Compat("svg.attributes.presentation.clip-path")}}

-- cgit v1.2.3-54-g00ecf