You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -57,7 +59,7 @@ and/or the creation of a <a href="https://www.w3.org/tr/css21/visuren.html#x43">
57
59
58
60
The 'background-blend-mode' property also builds upon the properties defined in the <a href="https://www.w3.org/TR/css3-background/#placement" title="Backgrounds and Borders">CSS Backgrounds and Borders</a> module [[!CSS3BG]].
59
61
60
-
This specification also enhances the rules as specified in <a href="https://www.w3.org/TR/2003/REC-SVG11-20030114/masking.html#SimpleAlphaBlending" title="simple alpha blending">Section 14.2 Simple alpha compositing</a> of [[SVG11]] and <a href="https://www.w3.org/TR/css3-color/#alpha" title="simple alpha compositing">simple alpha compositing</a> of [[!CSS3COLOR]].
62
+
This specification also enhances the rules as specified in <a href="https://www.w3.org/TR/2003/REC-SVG11-20030114/masking.html#SimpleAlphaBlending" title="simple alpha blending">Section 14.2 Simple alpha compositing</a> of [[SVG11]] and <a href="https://www.w3.org/TR/css-color-4/#alpha" title="simple alpha compositing">simple alpha compositing</a> of [[!CSS-COLOR-4]].
61
63
62
64
This module also extends the {{globalCompositeOperation}} attribute.
63
65
@@ -66,7 +68,7 @@ This module also extends the {{globalCompositeOperation}} attribute.
66
68
This specification follows the <a href="https://www.w3.org/TR/CSS21/about.html#property-defs">CSS property
67
69
definition conventions</a> from [[!CSS21]]. Value types not defined in
68
70
this specification are defined in CSS Level 2 Revision 1 [[!CSS21]]. Other CSS
69
-
modules may expand the definitions of these value types: for example [[!CSS3COLOR]],
71
+
modules may expand the definitions of these value types: for example [[!CSS-COLOR-4]],
70
72
when combined with this module, expands the definition of the <color>
71
73
value type as used in this specification.
72
74
@@ -83,8 +85,8 @@ The compositing model must follow the <a href="https://www.w3.org/TR/SVG11/rende
83
85
84
86
<h3 id="csscompositingrules_CSS">Behavior specific to HTML</h3>
85
87
<!-- <p>
86
-
If an element specifies non-default blending or <a href="https://www.w3.org/TR/css3-color/#transparency">'opacity'</a>, its <a href="https://www.w3.org/TR/css3-2d-transforms/#transform-style-property">transform-style</a>[[CSS3-TRANSFORMS]] and that of all of its children must revert to 'flat'.<br>
87
-
The application of blending other than 'normal' to an element must also establish a <a href="https://www.w3.org/tr/css21/visuren.html#x43">stacking context</a>[[!CSS21]] the same way that CSS <a href="https://www.w3.org/TR/css3-color/#transparency">'opacity'</a> does. One of the consequences is that elements with z-index must not honor the depth of elements outside of the group.<br> -->
88
+
If an element specifies non-default blending or <a href="https://www.w3.org/TR/css-color-4/#transparency">'opacity'</a>, its <a href="https://www.w3.org/TR/css3-2d-transforms/#transform-style-property">transform-style</a>[[CSS3-TRANSFORMS]] and that of all of its children must revert to 'flat'.<br>
89
+
The application of blending other than 'normal' to an element must also establish a <a href="https://www.w3.org/tr/css21/visuren.html#x43">stacking context</a>[[!CSS21]] the same way that CSS <a href="https://www.w3.org/TR/css-color-4/#transparency">'opacity'</a> does. One of the consequences is that elements with z-index must not honor the depth of elements outside of the group.<br> -->
88
90
89
91
Everything in CSS that creates a <a href="https://www.w3.org/TR/CSS21/zindex.html">stacking context</a> must be considered an <a href="#isolatedgroups">‘isolated’ group</a>. HTML elements themselves should not create groups.
90
92
@@ -121,7 +123,7 @@ This behavior is described in more detail in <a href="#blending">Blending</a>.
121
123
Name: mix-blend-mode
122
124
Value: <<blend-mode>>
123
125
Initial: normal
124
-
Applies to: All elements. In SVG, it applies to <a href="https://www.w3.org/TR/SVG/intro.html#TermContainerElement">container elements</a>, <a href="https://www.w3.org/TR/SVG/intro.html#TermGraphicsElement">graphics elements</a> and <a href="https://www.w3.org/TR/2011/REC-SVG11-20110816/intro.html#TermGraphicsReferencingElement">graphics referencing elements</a>. [[SVG11]]
126
+
Applies to: All elements. In SVG, it applies to <a href="https://www.w3.org/TR/SVG11/intro.html#TermContainerElement">container elements</a>, <a href="https://www.w3.org/TR/SVG11/intro.html#TermGraphicsElement">graphics elements</a> and <a href="https://www.w3.org/TR/2011/REC-SVG11-20110816/intro.html#TermGraphicsReferencingElement">graphics referencing elements</a>. [[SVG11]]
125
127
Inherited: no
126
128
Percentages: N/A
127
129
Computed value: as specified
@@ -204,7 +206,7 @@ Applying a blendmode other than <a value>normal</a> to the element must establis
204
206
parsing/mix-blend-mode-valid.html
205
207
</wpt>
206
208
207
-
<div class="example">
209
+
<div class="example" id='ex-duck-on-lime'>
208
210
<p>Given the following sample markup:</p>
209
211
<pre>
210
212
<body>
@@ -239,7 +241,7 @@ Blending of a transparent image on a lime backdrop.
239
241
</div>
240
242
</div>
241
243
242
-
<div class="example">
244
+
<div class="example" id="ex-svg-screen-mode">
243
245
<p>Given the following svg code:</p>
244
246
<pre>
245
247
<!-- --><svg>
@@ -264,7 +266,7 @@ Example of 3 circles blending with a screen blend mode
264
266
265
267
</div>
266
268
267
-
<div class="example">
269
+
<div class="example" id="ex-opacity-stacking">
268
270
<p>In the following style sheet and document fragment:</p>
269
271
<pre>
270
272
body { background-color: lime; }
@@ -290,7 +292,7 @@ Note how the image is not blending with the lime color.
290
292
</p>
291
293
</div>
292
294
293
-
<div class="example">
295
+
<div class="example" id="ex-overlay-blend">
294
296
<p>Given the following sample markup:</p>
295
297
<pre>
296
298
<body>
@@ -331,7 +333,7 @@ By default, elements use the ''isolation/auto'' keyword which implies that they
331
333
Name: isolation
332
334
Value: <<isolation-mode>>
333
335
Initial: auto
334
-
Applies to: All elements. In SVG, it applies to <a href="https://www.w3.org/TR/SVG/intro.html#TermContainerElement">container elements</a>, <a href="https://www.w3.org/TR/SVG/intro.html#TermGraphicsElement">graphics elements</a> and <a href="https://www.w3.org/TR/2011/REC-SVG11-20110816/intro.html#TermGraphicsReferencingElement">graphics referencing elements</a>. [[SVG11]]
336
+
Applies to: All elements. In SVG, it applies to <a href="https://www.w3.org/TR/SVG11/intro.html#TermContainerElement">container elements</a>, <a href="https://www.w3.org/TR/SVG11/intro.html#TermGraphicsElement">graphics elements</a> and <a href="https://www.w3.org/TR/2011/REC-SVG11-20110816/intro.html#TermGraphicsReferencingElement">graphics referencing elements</a>. [[SVG11]]
335
337
Inherited: no
336
338
Percentages: N/A
337
339
Computed value: as specified
@@ -392,7 +394,7 @@ The 'background-blend-mode' list must be applied in the same order as 'backgroun
392
394
If the 'background'[[!CSS3BG]] shorthand is used, the 'background-blend-mode'
393
395
property for that element must be reset to its initial value.
394
396
395
-
<div class="example">
397
+
<div class="example" id="ex-background-blend">
396
398
<p>Given the following sample markup:</p>
397
399
<pre>
398
400
<!-- --><body>
@@ -556,7 +558,7 @@ Co = co / αo
556
558
</div>
557
559
558
560
<h4 id="simplealphacompositingexamples">Examples of simple alpha compositing</h4>
<img src="examples/simple_backdrop.svg" alt="example of a simple backdrop calculation">
729
731
<p class="caption"></p>
@@ -733,7 +735,7 @@ This example has 2 simple shapes. The backdrop for the blue shape includes the b
733
735
The dotted line shows the area that is examined during compositing of the blue shape.
734
736
</p>
735
737
</div>
736
-
<div class="example">
738
+
<div class="example" id="ex-backdrop-with-alpha">
737
739
<div class="figure">
738
740
<img src="examples/simple_backdrop_alpha.svg" alt="example of a backdrop with alpha">
739
741
<p class="caption"></p>
@@ -1167,7 +1169,7 @@ with:
1167
1169
<li>αb: the <a>backdrop</a> alpha
1168
1170
</ul>
1169
1171
1170
-
<div class="example">
1172
+
<div class="example" id="ex-blend-with-opacity">
1171
1173
<div class="figure">
1172
1174
<img src="examples/blend_background_opacity.svg" alt="example of blending with opacity">
1173
1175
<p class="caption"></p>
@@ -1494,7 +1496,7 @@ Creates a color with the luminosity of the source color and the hue and saturati
1494
1496
1495
1497
Note: In the following example, the elements used to construct the paper airplane are within a group. Each of these elements has their blend mode set to multiply.
1496
1498
1497
-
<div class="example">
1499
+
<div class="example" id="ex-isolated-group">
1498
1500
The airplane on the left is a normal group, the airplane on the right is an <a href="#isolatedgroups">isolated group</a>.</p>
1499
1501
<p>
1500
1502
In the isolated group, the elements within the group are composited onto an empty initial backdrop, this stops the elements within the group multiplying with the backdrop.
0 commit comments