mozilla

Revision 532165 of mix-blend-mode

  • Revision slug: Web/CSS/mix-blend-mode
  • Revision title: mix-blend-mode
  • Revision id: 532165
  • Created:
  • Creator: FredB
  • Is current revision? No
  • Comment

Revision Content

{{CSSRef()}}

Summary

The mix-blend-mode CSS property describes how an element content should blend with the element's background that is below it and the element's background color.

  • {{Xref_cssinitial()}} {{Cssxref("normal")}}
  • Applies to all elements
  • {{Xref_cssinherited()}} no
  • Media {{Xref_cssvisual()}}
  • {{Xref_csscomputed()}} as specified
  • {{ Xref_cssanimatable() }} no

Syntax

Formal syntax:  <blend-mode>

Values

<blend-mode>
Is a {{Xref_cssblendmode()}} denoting the blending mode that should be applied. There can be several values, separated by commas.

Examples


Specifications

Specification Status Comment
{{ SpecName('Compositing', '#mix-blend-mode', 'mix-blend-mode') }} {{ Spec2('Compositing') }} Initial specification.

Browser compatibility

{{CompatibilityTable()}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatUnknown()}} {{CompatGeckoDesktop('28.0')}} {{CompatUnknown()}} {{CompatUnknown()}} {{CompatUnknown()}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown()}} {{CompatUnknown()}} {{CompatUnknown()}} {{CompatUnknown()}} {{CompatUnknown()}}

See also

Revision Source

<p>{{CSSRef()}}</p>
<h2 id="Summary" name="Summary">Summary</h2>
<p>The <code>mix-blend-mode</code> CSS property describes how an element content should blend with the element's background that is below it and the element's background color.</p>
<ul class="cssprop">
 <li><dfn>{{Xref_cssinitial()}}</dfn> {{Cssxref("normal")}}</li>
 <li><dfn>Applies to</dfn> all elements</li>
 <li><dfn>{{Xref_cssinherited()}}</dfn> no</li>
 <li><dfn>Media</dfn> {{Xref_cssvisual()}}</li>
 <li><dfn>{{Xref_csscomputed()}}</dfn> as specified</li>
 <li><dfn>{{ Xref_cssanimatable() }}</dfn> no</li>
</ul>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="syntaxbox">
<code>Formal syntax:  &lt;blend-mode&gt;</code></pre>
<h3 id="Values" name="Values">Values</h3>
<dl>
 <dt>
  <code>&lt;blend-mode&gt;</code></dt>
 <dd>
  Is a {{Xref_cssblendmode()}} denoting the blending mode that should be applied. There can be several values, separated by commas.</dd>
</dl>
<h2 id="Examples" name="Examples">Examples</h2>
<pre class="brush:css">
</pre>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{ SpecName('Compositing', '#mix-blend-mode', 'mix-blend-mode') }}</td>
   <td>{{ Spec2('Compositing') }}</td>
   <td>Initial specification.</td>
  </tr>
 </tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable()}}</p>
<div id="compat-desktop">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Feature</th>
    <th>Chrome</th>
    <th>Firefox (Gecko)</th>
    <th>Internet Explorer</th>
    <th>Opera</th>
    <th>Safari</th>
   </tr>
   <tr>
    <td>Basic support</td>
    <td>{{CompatUnknown()}}</td>
    <td>{{CompatGeckoDesktop('28.0')}}</td>
    <td>{{CompatUnknown()}}</td>
    <td>{{CompatUnknown()}}</td>
    <td>{{CompatUnknown()}}</td>
   </tr>
  </tbody>
 </table>
</div>
<div id="compat-mobile">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Feature</th>
    <th>Android</th>
    <th>Firefox Mobile (Gecko)</th>
    <th>IE Mobile</th>
    <th>Opera Mobile</th>
    <th>Safari Mobile</th>
   </tr>
   <tr>
    <td>Basic support</td>
    <td>{{CompatUnknown()}}</td>
    <td>{{CompatUnknown()}}</td>
    <td>{{CompatUnknown()}}</td>
    <td>{{CompatUnknown()}}</td>
    <td>{{CompatUnknown()}}</td>
   </tr>
  </tbody>
 </table>
</div>
<h2 id="See_also" name="See_also">See also</h2>
Revert to this revision