--- title: mix-blend-mode slug: Web/CSS/mix-blend-mode tags: - CSS - Propriedade CSS translation_of: Web/CSS/mix-blend-mode ---
{{CSSRef}}
A propriedade mix-blend-mode
descreve como um elemento de conteúdo deve ser mesclado com os elementos abaixo dele no background.
{{cssinfo}}
/* Valores para esta propriedade */ mix-blend-mode: normal; mix-blend-mode: multiply; mix-blend-mode: screen; mix-blend-mode: overlay; mix-blend-mode: darken; mix-blend-mode: lighten; mix-blend-mode: color-dodge; mix-blend-mode: color-burn; mix-blend-mode: hard-light; mix-blend-mode: soft-light; mix-blend-mode: difference; mix-blend-mode: exclusion; mix-blend-mode: hue; mix-blend-mode: saturation; mix-blend-mode: color; mix-blend-mode: luminosity; /* Valores globais */ mix-blend-mode: initial; mix-blend-mode: inherit; mix-blend-mode: unset;
<blend-mode>
<svg> <circle cx="40" cy="40" r="40" fill="red"/> <circle cx="80" cy="40" r="40" fill="lightgreen"/> <circle cx="60" cy="80" r="40" fill="blue"/> </svg>
circle { mix-blend-mode: screen; }
{{EmbedLiveSample("Examples", "100%", "180")}}
Specification | Status | Comment |
---|---|---|
{{ SpecName('Compositing', '#mix-blend-mode', 'mix-blend-mode') }} | {{ Spec2('Compositing') }} | Initial specification. |
{{CompatibilityTable()}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support |
{{CompatChrome(41.0)}} |
{{CompatGeckoDesktop('32.0')}} | {{CompatUnknown()}} | {{CompatVersionUnknown()}} | 8.0 |
SVG | {{CompatNo}} | {{CompatGeckoDesktop('32.0')}} | {{CompatUnknown()}} | {{CompatNo}} | {{CompatNo}} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support |
{{CompatChrome(41.0)}} |
{{CompatGeckoMobile('32.0')}} | {{CompatUnknown()}} | {{CompatUnknown()}} | 8.0 |
SVG | {{CompatNo}} | {{CompatGeckoMobile('32.0')}} | {{CompatUnknown()}} | {{CompatNo}} | {{CompatNo}} |