diff options
Diffstat (limited to 'files/fr/web/css/alpha-value/index.html')
-rw-r--r-- | files/fr/web/css/alpha-value/index.html | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/files/fr/web/css/alpha-value/index.html b/files/fr/web/css/alpha-value/index.html index 2a260de8f1..a2736fad98 100644 --- a/files/fr/web/css/alpha-value/index.html +++ b/files/fr/web/css/alpha-value/index.html @@ -25,13 +25,17 @@ translation_of: Web/CSS/alpha-value <p>Certaines fonctionnalités CSS utilisent des valeurs <code><alpha-value></code> dont <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#RGB_colors">les notations fonctionnelles pour les couleurs telles que <code>rgba()</code> et <code>hsla()</code></a> et aussi {{cssxref("shape-image-threshold")}} (qui détermine les pixels à prendre en compte pour une image lorsqu'on souhaite en extraire une forme).</p> -<pre class="brush: css no-line-numbers language-css"><code class="language-css"><span class="comment token">/* <rgba()> */</span> -<span class="property token">color</span><span class="punctuation token">:</span> <span class="function token">rgba</span><span class="punctuation token">(</span><span class="number token">34</span><span class="punctuation token">,</span> <span class="number token">12</span><span class="punctuation token">,</span> <span class="number token">64</span><span class="punctuation token">,</span> <span class="number token">0.6</span><span class="punctuation token">)</span><span class="punctuation token">;</span> -<span class="property token">color</span><span class="punctuation token">:</span> <span class="function token">rgba</span><span class="punctuation token">(</span><span class="number token">34.0</span> <span class="number token">12</span> <span class="number token">64</span> <span class="operator token">/</span> <span class="number token">60</span><span class="token unit">%</span><span class="punctuation token">)</span><span class="punctuation token">;</span></code> - -<code class="language-css"><span class="comment token">/* shape-image-threshold */ -</span><span class="property token">shape-image-threshold</span><span class="punctuation token">:</span> <span class="number token">70%</span><span class="punctuation token">;</span> -<span class="property token">shape-image-threshold</span><span class="punctuation token">:</span> <span class="number token">0.7</span><span class="punctuation token">;</span></code></pre> +<pre class="brush: css"> +/* <rgba()> */ +color: rgba(34, 12, 64, 0.6); +color: rgba(34.0 12 64 / 60%); +</pre> + +<pre class="brush: css"> +/* shape-image-threshold */ +shape-image-threshold: 70%; +shape-image-threshold: 0.7; +</pre> <h2 id="Spécifications">Spécifications</h2> |