From 88dda3c00eefc18a29447e99ebd3177925602b52 Mon Sep 17 00:00:00 2001 From: julieng Date: Mon, 1 Nov 2021 07:51:45 +0100 Subject: convert content to md --- files/fr/web/svg/attribute/stroke/index.md | 119 +++++++++++++---------------- 1 file changed, 52 insertions(+), 67 deletions(-) (limited to 'files/fr/web/svg/attribute/stroke/index.md') diff --git a/files/fr/web/svg/attribute/stroke/index.md b/files/fr/web/svg/attribute/stroke/index.md index 01e3b44595..15d964e62f 100644 --- a/files/fr/web/svg/attribute/stroke/index.md +++ b/files/fr/web/svg/attribute/stroke/index.md @@ -6,88 +6,73 @@ tags: - SVG translation_of: Web/SVG/Attribute/stroke --- -
{{SVGRef}}
+{{SVGRef}} -

L'attribut stroke définit la couleur (ou n'importe quelle méthode de remplissage, comme un gradient ou motif) a utiliser pour dessiner le contour d'une forme SVG.

+L'attribut **`stroke`** définit la couleur (ou n'importe quelle méthode de remplissage, comme un gradient ou motif) a utiliser pour dessiner le contour d'une forme SVG. -
-

Note : stroke étant un attribut de présentation, il peut être utilisé comme propriété CSS.

-
+> **Note :** `stroke` étant un attribut de présentation, il peut être utilisé comme propriété CSS. -

Cet attribut peut être appliqué à tout élément, en revanche il n'aura d'effet que sur les éléments suivants: {{SVGElement('altGlyph')}}, {{SVGElement('circle')}}, {{SVGElement('ellipse')}}, {{SVGElement('path')}}, {{SVGElement('polygon')}}, {{SVGElement('polyline')}}, {{SVGElement('rect')}}, {{SVGElement('text')}}, {{SVGElement('textPath')}}, {{SVGElement('tref')}}, and {{SVGElement('tspan')}}

+Cet attribut peut être appliqué à tout élément, en revanche il n'aura d'effet que sur les éléments suivants: {{SVGElement('altGlyph')}}, {{SVGElement('circle')}}, {{SVGElement('ellipse')}}, {{SVGElement('path')}}, {{SVGElement('polygon')}}, {{SVGElement('polyline')}}, {{SVGElement('rect')}}, {{SVGElement('text')}}, {{SVGElement('textPath')}}, {{SVGElement('tref')}}, and {{SVGElement('tspan')}} -

Exemple

+## Exemple - +```css hidden +html,body,svg { height:100% } +``` -
<svg viewBox="0 0 20 10" xmlns="http://www.w3.org/2000/svg">
+```html
+
 
-  <!-- Simple trait de couleur -->
-  <circle cx="5" cy="5" r="4" fill="none"
-          stroke="green" />
+  
+  
 
-  <!-- Utiliser un degradé comme contour -->
-  <defs>
-    <linearGradient id="myGradient">
-      <stop offset="0%"   stop-color="green" />
-      <stop offset="100%" stop-color="white" />
-    </linearGradient>
-  </defs>
-  <circle cx="15" cy="5" r="4" fill="none"
-          stroke="url(#myGradient)" />
-</svg>
-
+ + + + + + + + + +``` -

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

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

Notes d'usage

+## Notes d'usage - - - - - - - - - - - - - - + + + + + + + + + + + + + +
Valeur<paint>
Valeur par défautnone
AnimationOui
Valeur + <paint> +
Valeur par défautnone
AnimationOui
-

Spécifications

+## Spécifications - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName("SVG2", "painting.html#StrokeProperty", "stroke")}}{{Spec2("SVG2")}}Définition pour les formes et le texte.
- Ajoute context-fill et context-stroke.
{{SpecName("SVG1.1", "painting.html#StrokeProperty", "stroke")}}{{Spec2("SVG1.1")}}Définiton initiale pour les formes et le texte
+| Spécification | Statut | Commentaire | +| ------------------------------------------------------------------------------------ | ------------------------ | ---------------------------------------------------------------------------------- | +| {{SpecName("SVG2", "painting.html#StrokeProperty", "stroke")}} | {{Spec2("SVG2")}} | Définition pour les formes et le texte. Ajoute `context-fill` et `context-stroke`. | +| {{SpecName("SVG1.1", "painting.html#StrokeProperty", "stroke")}} | {{Spec2("SVG1.1")}} | Définiton initiale pour les formes et le texte | -

Compatibilité des navigateurs

+## Compatibilité des navigateurs -

{{Compat("svg.attributes.presentation.stroke")}}

+{{Compat("svg.attributes.presentation.stroke")}} -
-

Note : Pour plus d'informations sur les valeurs de context-stroke (et context-fill) à partir de documents HTML, voir la documentation pour la propriété non-standard {{cssxref("-moz-context-properties")}}.

-
+> **Note :** Pour plus d'informations sur les valeurs de `context-stroke` (et `context-fill`) à partir de documents HTML, voir la documentation pour la propriété non-standard {{cssxref("-moz-context-properties")}}. -- cgit v1.2.3-54-g00ecf