blob: c8677e654573070eba94d83dc148c79aaad5c4a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
---
title: mix-blend-mode
slug: Web/CSS/mix-blend-mode
tags:
- CSS
- Propriedade CSS
translation_of: Web/CSS/mix-blend-mode
---
<p>{{CSSRef}}</p>
<h2 id="Summary" name="Summary">Resumo</h2>
<p>A propriedade <strong><code>mix-blend-mode</code></strong> descreve como um elemento de conteúdo deve ser mesclado com os elementos abaixo dele no background.</p>
<p>{{cssinfo}}</p>
<h2 id="Syntax" name="Syntax">Sintaxe</h2>
<pre class="brush:css">/* 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;
</pre>
<h3 id="Values" name="Values">Valores</h3>
<dl>
<dt><code><blend-mode></code></dt>
<dd>É uma {{cssxref("<blend-mode>")}} que descreve qual mesclagem deve ser aplicada. Podem ser descritos vários valores, separados por vírgula.</dd>
</dl>
<h3 id="Sintaxe_formal">Sintaxe formal</h3>
<pre class="syntaxbox">{{csssyntax}}</pre>
<h2 id="Examples" name="Examples">Exemplos</h2>
<pre class="brush: html"><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></pre>
<pre class="brush:css">circle { mix-blend-mode: screen; }</pre>
<h3 id="Resultado">Resultado</h3>
<p>{{EmbedLiveSample("Examples", "100%", "180")}}</p>
<h2 id="Specifications" name="Specifications">Especificações</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">Compatibilidade de navegadores</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>
<p class="p1">{{CompatChrome(41.0)}}</p>
</td>
<td>{{CompatGeckoDesktop('32.0')}}</td>
<td>{{CompatUnknown()}}</td>
<td>{{CompatVersionUnknown()}}</td>
<td>8.0</td>
</tr>
<tr>
<td>SVG</td>
<td>{{CompatNo}}</td>
<td>{{CompatGeckoDesktop('32.0')}}</td>
<td>{{CompatUnknown()}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</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>
<p class="p1">{{CompatChrome(41.0)}}</p>
</td>
<td>{{CompatGeckoMobile('32.0')}}</td>
<td>{{CompatUnknown()}}</td>
<td>{{CompatUnknown()}}</td>
<td>8.0</td>
</tr>
<tr>
<td>SVG</td>
<td>{{CompatNo}}</td>
<td>{{CompatGeckoMobile('32.0')}}</td>
<td>{{CompatUnknown()}}</td>
<td>{{CompatNo}}</td>
<td>{{CompatNo}}</td>
</tr>
</tbody>
</table>
</div>
<h2 id="See_also" name="See_also"> </h2>
<h2 id="See_also" name="See_also">Veja também</h2>
<ul>
<li>{{cssxref("<blend-mode>")}}</li>
<li>{{cssxref("background-blend-mode")}}</li>
</ul>
|