aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/svg/element/stop
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/fr/web/svg/element/stop
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/fr/web/svg/element/stop')
-rw-r--r--files/fr/web/svg/element/stop/index.html100
1 files changed, 100 insertions, 0 deletions
diff --git a/files/fr/web/svg/element/stop/index.html b/files/fr/web/svg/element/stop/index.html
new file mode 100644
index 0000000000..4d46a93753
--- /dev/null
+++ b/files/fr/web/svg/element/stop/index.html
@@ -0,0 +1,100 @@
+---
+title: <stop>
+slug: Web/SVG/Element/stop
+translation_of: Web/SVG/Element/stop
+---
+<div>{{SVGRef}}</div>
+
+<p>L'élément <a href="/en-US/docs/Web/SVG">SVG</a> <strong><code>&lt;stop&gt;</code></strong> définit une couleur supplémentaire dans une palette à utiliser pour un dégradé, et est contenu dans un élément {{SVGElement("linearGradient")}} ou {{SVGElement("radialGradient")}}.</p>
+
+<h2 id="Contexte_d'utilisation">Contexte d'utilisation</h2>
+
+<p>{{svginfo}}</p>
+
+<h2 id="Attributs">Attributs</h2>
+
+<h3 id="Attributs_globaux">Attributs globaux</h3>
+
+<ul>
+ <li><a href="/en-US/docs/Web/SVG/Attribute#Core_attributes">Attributs de base</a></li>
+ <li><a href="/en-US/docs/Web/SVG/Attribute#Presentation_attributes">Attributs de présentation</a></li>
+ <li>{{SVGAttr("class")}}</li>
+ <li>{{SVGAttr("style")}}</li>
+</ul>
+
+<h3 id="Specific_attributes">Specific attributes</h3>
+
+<ul>
+ <li>{{SVGAttr("offset")}}</li>
+ <li>{{SVGAttr("stop-color")}}</li>
+ <li>{{SVGAttr("stop-opacity")}}</li>
+</ul>
+
+<h2 id="DOM_Interface">DOM Interface</h2>
+
+<p>Cet élément implémenté l'interface {{domxref("SVGStopElement")}}.</p>
+
+<h2 id="Exemple">Exemple</h2>
+
+<h3 id="SVG">SVG</h3>
+
+<pre class="brush: html">&lt;svg width="160" height="95" viewBox="0 0 80 40"
+ xmlns="http://www.w3.org/2000/svg"&gt;
+
+ &lt;defs&gt;
+ &lt;linearGradient id="MyGradient"&gt;
+ &lt;stop offset="5%" stop-color="#F60" /&gt;
+ &lt;stop offset="95%" stop-color="#FF6" /&gt;
+ &lt;/linearGradient&gt;
+ &lt;/defs&gt;
+
+ &lt;!-- Contour de la zone de dessin en noir --&gt;
+ &lt;rect fill="none" stroke="black"
+ x="0.5" y="0.5" width="79" height="39"/&gt;
+
+ &lt;!-- Le rectangle est rempli avec un dégradé linéaire --&gt;
+ &lt;rect fill="url(#MyGradient)" stroke="black" stroke-width="1"
+ x="10" y="10" width="60" height="20"/&gt;
+&lt;/svg&gt;
+</pre>
+
+<h3 id="Résultat">Résultat</h3>
+
+<p>{{EmbedLiveSample("Example", 160, 95)}}</p>
+
+<h2 id="Spécifications">Spécifications</h2>
+
+<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', 'pservers.html#GradientStops', '&lt;stop&gt;')}}</td>
+ <td>{{Spec2('SVG2')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('SVG1.1', 'pservers.html#GradientStops', '&lt;stop&gt;')}}</td>
+ <td>{{Spec2('SVG1.1')}}</td>
+ <td>Définition initiale</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
+
+<div class="hidden">Le tableau de comptabilité sur cette page est généré depuis des données structurées. Si vous souhaitez contribuer à ces données, veuillez consulter <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> et nous envoyer une requête d'envoi.</div>
+
+<p>{{Compat("svg.elements.stop")}}</p>
+
+<h2 id="Voir_aussi">Voir aussi</h2>
+
+<ul>
+ <li>{{SVGElement("linearGradient")}}</li>
+ <li>{{SVGElement("radialGradient")}}</li>
+</ul>