diff options
author | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-11-01 07:45:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 07:45:47 +0100 |
commit | e7f1d07cba1f78b72eb43bfcdabc262359c4991a (patch) | |
tree | 04dbbcb9a5ed0ccf1cfb31bdce6a7ab9a5866be8 /files/fr/web/svg/element/g/index.html | |
parent | aab1606ed15d15bb1dc3a73f33dd60b7230e77fa (diff) | |
download | translated-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.html | 29 |
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"><</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">></span></span> - <span class="comment token"><!-- Les enfants de g héritent de ses attributs de présentation --></span> - <span class="tag token"><span class="tag token"><span class="punctuation token"><</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">></span></span> - <span class="tag token"><span class="tag token"><span class="punctuation token"><</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">/></span></span> - <span class="tag token"><span class="tag token"><span class="punctuation token"><</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">/></span></span> - <span class="tag token"><span class="tag token"><span class="punctuation token"></</span>g</span><span class="punctuation token">></span></span> -<span class="tag token"><span class="tag token"><span class="punctuation token"></</span>svg</span><span class="punctuation token">></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"><svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> + <!-- Les enfants de g héritent de ses attributs de présentation --> + <g fill="white" stroke="green" stroke-width="5"> + <circle cx="40" cy="40" r="25" /> + <circle cx="60" cy="60" r="25" /> + </g> +</svg></pre> + +<p>{{EmbedLiveSample('exemple', 100, '100%')}}</p> <h2 id="Attributs">Attributs</h2> |