aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/svg/element/g/index.html
diff options
context:
space:
mode:
authorSphinxKnight <SphinxKnight@users.noreply.github.com>2021-11-01 07:45:47 +0100
committerGitHub <noreply@github.com>2021-11-01 07:45:47 +0100
commite7f1d07cba1f78b72eb43bfcdabc262359c4991a (patch)
tree04dbbcb9a5ed0ccf1cfb31bdce6a7ab9a5866be8 /files/fr/web/svg/element/g/index.html
parentaab1606ed15d15bb1dc3a73f33dd60b7230e77fa (diff)
downloadtranslated-content-e7f1d07cba1f78b72eb43bfcdabc262359c4991a.tar.gz
translated-content-e7f1d07cba1f78b72eb43bfcdabc262359c4991a.tar.bz2
translated-content-e7f1d07cba1f78b72eb43bfcdabc262359c4991a.zip
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
Diffstat (limited to 'files/fr/web/svg/element/g/index.html')
-rw-r--r--files/fr/web/svg/element/g/index.html29
1 files changed, 14 insertions, 15 deletions
diff --git a/files/fr/web/svg/element/g/index.html b/files/fr/web/svg/element/g/index.html
index e5b414e425..87392d44f3 100644
--- a/files/fr/web/svg/element/g/index.html
+++ b/files/fr/web/svg/element/g/index.html
@@ -14,21 +14,20 @@ translation_of: Web/SVG/Element/g
<p>Les transformations appliquées à l'élément <code>g</code> sont reportées à tous ses éléments enfants. Les attributs appliqués sont également reportés aux éléments enfants. De plus, il peut être utilisé pour définir des objets complexes qui seront référencés ultérieurement avec l'élément {{SVGElement("use")}}.</p>
-<div id="Exemple">
-<div class="hidden">
-<pre class="brush: css line-numbers language-css"><code class="language-css"><span class="selector token">html,body,svg </span><span class="punctuation token">{</span> <span class="property token">height</span><span class="punctuation token">:</span><span class="number token">100%</span> <span class="punctuation token">}</span></code></pre>
-</div>
-
-<pre class="brush: html; highlight[4] line-numbers language-html"><code class="language-html"><span class="tag token"><span class="tag token"><span class="punctuation token">&lt;</span>svg</span> <span class="attr-name token">viewBox</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>0 0 100 100<span class="punctuation token">"</span></span> <span class="attr-name token">xmlns</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>http://www.w3.org/2000/svg<span class="punctuation token">"</span></span><span class="punctuation token">&gt;</span></span>
- <span class="comment token">&lt;!-- Les enfants de g héritent de ses attributs de présentation --&gt;</span>
- <span class="tag token"><span class="tag token"><span class="punctuation token">&lt;</span>g</span> <span class="attr-name token">fill</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>white<span class="punctuation token">"</span></span> <span class="attr-name token">stroke</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>green<span class="punctuation token">"</span></span> <span class="attr-name token">stroke-width</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>5<span class="punctuation token">"</span></span><span class="punctuation token">&gt;</span></span>
- <span class="tag token"><span class="tag token"><span class="punctuation token">&lt;</span>circle</span> <span class="attr-name token">cx</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>40<span class="punctuation token">"</span></span> <span class="attr-name token">cy</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>40<span class="punctuation token">"</span></span> <span class="attr-name token">r</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>25<span class="punctuation token">"</span></span> <span class="punctuation token">/&gt;</span></span>
- <span class="tag token"><span class="tag token"><span class="punctuation token">&lt;</span>circle</span> <span class="attr-name token">cx</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>60<span class="punctuation token">"</span></span> <span class="attr-name token">cy</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>60<span class="punctuation token">"</span></span> <span class="attr-name token">r</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>25<span class="punctuation token">"</span></span> <span class="punctuation token">/&gt;</span></span>
- <span class="tag token"><span class="tag token"><span class="punctuation token">&lt;/</span>g</span><span class="punctuation token">&gt;</span></span>
-<span class="tag token"><span class="tag token"><span class="punctuation token">&lt;/</span>svg</span><span class="punctuation token">&gt;</span></span></code></pre>
-</div>
-
-<p>{{EmbedLiveSample('Exemple', 100, '100%')}}</p>
+<h2>Exemple</h2>
+
+<pre class="brush: css hidden">html,body,svg { height:100% }</pre>
+
+
+<pre class="brush: html">&lt;svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"&gt;
+ &lt;!-- Les enfants de g héritent de ses attributs de présentation --&gt;
+ &lt;g fill="white" stroke="green" stroke-width="5"&gt;
+ &lt;circle cx="40" cy="40" r="25" /&gt;
+ &lt;circle cx="60" cy="60" r="25" /&gt;
+ &lt;/g&gt;
+&lt;/svg&gt;</pre>
+
+<p>{{EmbedLiveSample('exemple', 100, '100%')}}</p>
<h2 id="Attributs">Attributs</h2>