aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/svg/attribute/stroke-width/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/svg/attribute/stroke-width/index.md')
-rw-r--r--files/fr/web/svg/attribute/stroke-width/index.md137
1 files changed, 73 insertions, 64 deletions
diff --git a/files/fr/web/svg/attribute/stroke-width/index.md b/files/fr/web/svg/attribute/stroke-width/index.md
index db0bb6754d..66dcae8d4a 100644
--- a/files/fr/web/svg/attribute/stroke-width/index.md
+++ b/files/fr/web/svg/attribute/stroke-width/index.md
@@ -6,88 +6,97 @@ tags:
- SVG Attribute
translation_of: Web/SVG/Attribute/stroke-width
---
-<div>{{SVGRef}}</div>
+{{SVGRef}}
-<p>L'attribut <strong><code>stroke-width</code></strong> définit l'épaisseur du contour à appliquer à une forme SVG.</p>
+L'attribut **`stroke-width`** définit l'épaisseur du contour à appliquer à une forme SVG.
-<div class="note">
- <p><strong>Note :</strong> <code>stroke-width</code> étant un attribut de présentation, il peut être utilisé comme propriété CSS.</p>
-</div>
+> **Note :** `stroke-width` étant un attribut de présentation, il peut être utilisé comme propriété CSS.
-<p>Cet attribut peut être appliqué à tous les éléments, 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')}}, et {{SVGElement('tspan')}}</p>
+Cet attribut peut être appliqué à tous les éléments, 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')}}, et {{SVGElement('tspan')}}
-<h2>Exemple</h2>
+## Exemple
-<pre class="brush: css hidden">html,body,svg { height:100% }</pre>
+```css hidden
+html,body,svg { height:100% }
+```
-<pre class="brush: html">&lt;svg viewBox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"&gt;
- &lt;!-- Épaisseur par défaut: 1 --&gt;
- &lt;circle cx="5" cy="5" r="3" stroke="green" /&gt;
+```html
+<svg viewBox="0 0 30 10" xmlns="http://www.w3.org/2000/svg">
+ <!-- Épaisseur par défaut: 1 -->
+ <circle cx="5" cy="5" r="3" stroke="green" />
- &lt;!-- Définit l'épaisseur avec un nombre --&gt;
- &lt;circle cx="15" cy="5" r="3" stroke="green"
- stroke-width="3" /&gt;
+ <!-- Définit l'épaisseur avec un nombre -->
+ <circle cx="15" cy="5" r="3" stroke="green"
+ stroke-width="3" />
- &lt;!-- Définit l'épaisseur avec un pourcentage --&gt;
- &lt;circle cx="25" cy="5" r="3" stroke="green"
- stroke-width="2%" /&gt;
-&lt;/svg&gt;</pre>
+ <!-- Définit l'épaisseur avec un pourcentage -->
+ <circle cx="25" cy="5" r="3" stroke="green"
+ stroke-width="2%" />
+</svg>
+```
-<p>{{EmbedLiveSample('exemple', '100%', 150)}}</p>
+{{EmbedLiveSample('exemple', '100%', 150)}}
-<h2 id="Notes_d'usage">Notes d'usage</h2>
+## Notes d'usage
<table class="standard-table">
- <tbody>
- <tr>
- <th scope="row">Valeur</th>
- <td><strong><a href="/docs/Web/SVG/Content_type#Length">&lt;length&gt;</a></strong> | <strong><a href="/docs/Web/SVG/Content_type#Percentage">&lt;percentage&gt;</a></strong></td>
- </tr>
- <tr>
- <th scope="row">Valeur par défaut</th>
- <td><code>1px</code></td>
- </tr>
- <tr>
- <th scope="row">Animation</th>
- <td>Oui</td>
- </tr>
- </tbody>
+ <tbody>
+ <tr>
+ <th scope="row">Valeur</th>
+ <td>
+ <strong
+ ><a href="/docs/Web/SVG/Content_type#Length">&#x3C;length></a></strong
+ > |
+ <strong
+ ><a href="/docs/Web/SVG/Content_type#Percentage"
+ >&#x3C;percentage></a
+ ></strong
+ >
+ </td>
+ </tr>
+ <tr>
+ <th scope="row">Valeur par défaut</th>
+ <td><code>1px</code></td>
+ </tr>
+ <tr>
+ <th scope="row">Animation</th>
+ <td>Oui</td>
+ </tr>
+ </tbody>
</table>
-<div class="note">
- <p><strong>Note :</strong> SVG2 introduit les valeurs en pourcentage pour <code>stroke-width</code>, Cependant, ce n'est pas souvent pris en charge pour le moment (<em>voir {{anch('Compatibilité des navigateurs')}} ci-dessous</em>). Il est par conséquent recommandé d'utiliser les valeurs de l'intervalle <code>[0-1]</code>.</p>
-</div>
+> **Note :** SVG2 introduit les valeurs en pourcentage pour `stroke-width`, Cependant, ce n'est pas souvent pris en charge pour le moment (_voir {{anch('Compatibilité des navigateurs')}} ci-dessous_). Il est par conséquent recommandé d'utiliser les valeurs de l'intervalle `[0-1]`.
-<p>Une valeur en pourcentage est toujours calculée en tant que pourcentage de la longueur diagonale {{SVGAttr('viewBox')}} normalisée.</p>
+Une valeur en pourcentage est toujours calculée en tant que pourcentage de la longueur diagonale {{SVGAttr('viewBox')}} normalisée.
-<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
+## Compatibilité des navigateurs
-<p>{{Compat("svg.attributes.presentation.stroke-width")}}</p>
+{{Compat("svg.attributes.presentation.stroke-width")}}
-<h2 id="Spécification">Spécification</h2>
+## Spécification
<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Spécification</th>
- <th scope="col">Statut</th>
- <th scope="col">Commentaire</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("SVG2", "painting.html#StrokeWidthProperty", "stroke-width")}}</td>
- <td>{{Spec2("SVG2")}}</td>
- <td>
- <p>Définition pour les formes et le texte</p>
-
-
- </td>
- </tr>
- <tr>
- <td>{{SpecName("SVG1.1", "painting.html#StrokeWidthProperty", "stroke-width")}}</td>
- <td>{{Spec2("SVG1.1")}}</td>
- <td>Définition initiale pour les formes et le texte</td>
- </tr>
- </tbody>
+ <thead>
+ <tr>
+ <th scope="col">Spécification</th>
+ <th scope="col">Statut</th>
+ <th scope="col">Commentaire</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ {{SpecName("SVG2", "painting.html#StrokeWidthProperty", "stroke-width")}}
+ </td>
+ <td>{{Spec2("SVG2")}}</td>
+ <td><p>Définition pour les formes et le texte</p></td>
+ </tr>
+ <tr>
+ <td>
+ {{SpecName("SVG1.1", "painting.html#StrokeWidthProperty", "stroke-width")}}
+ </td>
+ <td>{{Spec2("SVG1.1")}}</td>
+ <td>Définition initiale pour les formes et le texte</td>
+ </tr>
+ </tbody>
</table>