diff options
| author | julieng <julien.gattelier@gmail.com> | 2021-09-17 20:58:15 +0200 |
|---|---|---|
| committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-12 07:57:33 +0200 |
| commit | 149319bb8c7b1394a443f0877c3460cd362aa815 (patch) | |
| tree | d534abb0cbc87d5e224836e9d6b888aa58564aa0 /files/fr/web/css/background-blend-mode/index.html | |
| parent | eb9de0363cb273b54d3f5402bbf4e3bc03c60971 (diff) | |
| download | translated-content-149319bb8c7b1394a443f0877c3460cd362aa815.tar.gz translated-content-149319bb8c7b1394a443f0877c3460cd362aa815.tar.bz2 translated-content-149319bb8c7b1394a443f0877c3460cd362aa815.zip | |
move *.html to *.md
Diffstat (limited to 'files/fr/web/css/background-blend-mode/index.html')
| -rw-r--r-- | files/fr/web/css/background-blend-mode/index.html | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/files/fr/web/css/background-blend-mode/index.html b/files/fr/web/css/background-blend-mode/index.html deleted file mode 100644 index 0b8bc30a7f..0000000000 --- a/files/fr/web/css/background-blend-mode/index.html +++ /dev/null @@ -1,116 +0,0 @@ ---- -title: background-blend-mode -slug: Web/CSS/background-blend-mode -tags: - - CSS - - Propriété - - Reference -translation_of: Web/CSS/background-blend-mode ---- -<div>{{CSSRef}}</div> - -<p>La propriété CSS <strong><code>background-blend-mode</code></strong> définit la façon dont les images d'arrière-plan doivent être fusionnées entre elles et avec la couleur d'arrière-plan.</p> - -<div>{{EmbedInteractiveExample("pages/css/background-blend-mode.html")}}</div> - -<p>Les modes de fusions (<em>blending modes</em>) doivent être définis dans le même ordre que les images sont définies avec {{cssxref("background-image")}}. Si la liste des modes de fusion et la liste des images d'arrière-plan ne sont pas de la même longueur, la première liste sera répétée ou tronquée pour que les longueurs soient égales.</p> - -<h2 id="Syntaxe">Syntaxe</h2> - -<pre class="brush:css no-line-numbers">/* Une valeur qui s'applique à toutes les images */ -background-blend-mode: normal; - -/* Deux valeurs, chacune pour une image */ -background-blend-mode: darken, luminosity; - -/* Valeurs globales */ -background-blend-mode: initial; -background-blend-mode: inherit; -background-blend-mode: unset; -</pre> - -<h3 id="Valeurs">Valeurs</h3> - -<dl> - <dt><code><blend-mode></code></dt> - <dd>Une valeur décrivant un mode de fusion (type {{cssxref("<blend-mode>")}}) qui doit être appliqué. On peut avoir plusieurs valeurs et dans ce cas, elles doivent être séparées par des virgules.</dd> -</dl> - -<h3 id="Syntaxe_formelle">Syntaxe formelle</h3> - -<pre>Syntaxe Formelle: normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity</pre> - -<h2 id="Exemples">Exemples</h2> - -<h3 id="CSS">CSS</h3> - -<pre class="brush: css">#div { - width: 300px; - height: 300px; - background: url('https://mdn.mozillademos.org/files/8543/br.png'),url('https://mdn.mozillademos.org/files/8545/tr.png'); - background-blend-mode: screen; -}</pre> - -<h3 id="HTML">HTML</h3> - -<pre class="brush: html"><div id="div"></div> - -<select id="select"> - <option>normal</option> - <option>multiply</option> - <option selected>screen</option> - <option>overlay</option> - <option>darken</option> - <option>lighten</option> - <option>color-dodge</option> - <option>color-burn</option> - <option>hard-light</option> - <option>soft-light</option> - <option>difference</option> - <option>exclusion</option> - <option>hue</option> - <option>saturation</option> - <option>color</option> - <option>luminosity</option> -</select></pre> - -<h3 id="JavaScript">JavaScript</h3> - -<pre class="brush: js ">document.getElementById("select").onchange = function(event) { - document.getElementById("div").style.backgroundBlendMode = document.getElementById("select").selectedOptions[0].innerHTML; -} -console.log(document.getElementById('div'));</pre> - -<p>{{EmbedLiveSample('Exemples', "330", "330")}}</p> - -<h2 id="Spécifications">Spécifications</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Spécification</th> - <th scope="col">État</th> - <th scope="col">Commentaires</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('Compositing', '#background-blend-mode', 'background-blend-mode')}}</td> - <td>{{Spec2('Compositing')}}</td> - <td>Définition initiale.</td> - </tr> - </tbody> -</table> - -<p>{{cssinfo}}</p> - -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> - -<p>{{Compat("css.properties.background-blend-mode")}}</p> - -<h2 id="Voir_aussi">Voir aussi</h2> - -<ul> - <li>{{cssxref("<blend-mode>")}}</li> - <li>{{cssxref("mix-blend-mode")}}</li> -</ul> |
