Skip to content

Commit 6261d6d

Browse files
committed
fix some bikeshed errors
1 parent dbf9d88 commit 6261d6d

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

compositing-1/Overview.bs

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Note: Applying a blendmode other than <a value>normal</a> to the element must es
150150
... will produce the following result:
151151
</p>
152152
<div class="figure">
153-
<img alt="example of an image of duck with the lime color of the document" src="examples/ducky_normal.png" style="width:30%"/>
153+
<img alt="example of an image of duck with the lime color of the document" src="examples/ducky_normal.png" style="width:30%">
154154
<p class="caption">
155155
Partially transparent image on a lime backdrop</p>
156156
</div>
@@ -163,7 +163,7 @@ img { mix-blend-mode: multiply; }
163163
... the output will be the image blending with the lime background of the &lt;body> element.
164164
</p>
165165
<div class="figure">
166-
<img alt="example of an image of duck blending with the lime color of the document" src="examples/ducky_multiply.png" style="width:30%"/>
166+
<img alt="example of an image of duck blending with the lime color of the document" src="examples/ducky_multiply.png" style="width:30%">
167167
<p class="caption">
168168
Blending of a transparent image on a lime backdrop.
169169
</p>
@@ -187,7 +187,7 @@ circle { mix-blend-mode: screen; }
187187
... the output will be blending of the 3 circles. Each circle is rendered from bottom to top. Where the elements overlap, the blend mode produces a change in color.
188188
</p>
189189
<div class="figure">
190-
<img alt="example of 3 circles blending with a screen blend mode" src="examples/screen_example.svg" style="width:30%"/>
190+
<img alt="example of 3 circles blending with a screen blend mode" src="examples/screen_example.svg" style="width:30%">
191191
<p class="caption">
192192
Example of 3 circles blending with a screen blend mode
193193
</p>
@@ -212,7 +212,7 @@ img { mix-blend-mode: difference; }
212212
... the 'opacity' on the &lt;div> element is causing the creation of a stacking context. This causes the creation of a new group so the image doesn't blend with the color of the &lt;body>.
213213
</p>
214214
<div class="figure">
215-
<img alt="example of an image of duck blending with the lime color of the document" src="examples/ducky_difference.png" style="width:30%"/>
215+
<img alt="example of an image of duck blending with the lime color of the document" src="examples/ducky_difference.png" style="width:30%">
216216
<p class="caption">
217217
Example of blending within a stacking context.</p>
218218
</div>
@@ -244,7 +244,7 @@ p {
244244
</pre>
245245

246246
<div class="figure">
247-
<img alt="example of text that has an overlay blend on top of a texture" src="examples/overlay_text.png" style="width:75%"/>
247+
<img alt="example of text that has an overlay blend on top of a texture" src="examples/overlay_text.png" style="width:75%">
248248
<p class="caption">
249249
Text with a blend overlay on top of an image.
250250
</p>
@@ -324,7 +324,7 @@ div {
324324
}
325325
</pre>
326326
<div class="figure">
327-
<img alt="example of div that has an image of a duck and a gradient that is blending" src="examples/ducky_background_blend.png" style="width:30%"/>
327+
<img alt="example of div that has an image of a duck and a gradient that is blending" src="examples/ducky_background_blend.png" style="width:30%">
328328
<p class="caption">
329329
Blending of 2 background images.
330330
</p>
@@ -466,7 +466,7 @@ Co = co / αo
466466
<h4 id="simplealphacompositingexamples">Examples of simple alpha compositing</h4>
467467
<div class="example">
468468
<div class="figure">
469-
<img src="examples/simple_box.svg" alt="Simple box showing alpha compositing"/>
469+
<img src="examples/simple_box.svg" alt="Simple box showing alpha compositing">
470470
<p class="caption"></p>
471471
</div>
472472
<p>
@@ -489,7 +489,7 @@ co = RGB(1,0,0)
489489

490490
<div class="example">
491491
<div class="figure">
492-
<img src="examples/two_box.svg" alt="simple shape"/>
492+
<img src="examples/two_box.svg" alt="simple shape">
493493
<p class="caption"></p>
494494
</div>
495495
<p>
@@ -526,7 +526,7 @@ Co = RGB(0, 0, 1)
526526

527527
<div class="example">
528528
<div class="figure">
529-
<img src="examples/two_box_transparency.svg" alt="interaction of a solid box with a transparent box on top"/>
529+
<img src="examples/two_box_transparency.svg" alt="interaction of a solid box with a transparent box on top">
530530
<p class="caption"></p>
531531
</div>
532532
<p>
@@ -562,7 +562,7 @@ Co = RGB(0.5, 0, 0.5)
562562

563563
<div class="example">
564564
<div class="figure">
565-
<img src="examples/two_box_transparency_both.svg" alt="interaction of 2 transparent boxes"/>
565+
<img src="examples/two_box_transparency_both.svg" alt="interaction of 2 transparent boxes">
566566
<p class="caption"></p>
567567
</div>
568568
<p>
@@ -633,7 +633,7 @@ This means that the backdrop is the result of compositing all previous elements.
633633
<h3 id="backdropexamples">Examples of backdrop calculation</h3>
634634
<div class="example">
635635
<div class="figure">
636-
<img src="examples/simple_backdrop.svg" alt="example of a simple backdrop calculation"/>
636+
<img src="examples/simple_backdrop.svg" alt="example of a simple backdrop calculation">
637637
<p class="caption"></p>
638638
</div>
639639
<p>
@@ -643,7 +643,7 @@ The dotted line shows the area that is examined during compositing of the blue s
643643
</div>
644644
<div class="example">
645645
<div class="figure">
646-
<img src="examples/simple_backdrop_alpha.svg" alt="example of a backdrop with alpha"/>
646+
<img src="examples/simple_backdrop_alpha.svg" alt="example of a backdrop with alpha">
647647
<p class="caption"></p>
648648
</div>
649649
<p>
@@ -744,7 +744,7 @@ The four regions are:
744744
Note: Destination is synonymous with backdrop. The term destination is used in this section as this is considered the standard when working with Porter Duff compositing. Additionally, the compositing operators use ''destination'' in their names.
745745

746746
<div class="figure">
747-
<p style="text-align:center"><img src="examples/PD_regions.svg" alt="overview of the regions affected by porter duff"/></p>
747+
<p style="text-align:center"><img src="examples/PD_regions.svg" alt="overview of the regions affected by porter duff"></p>
748748
<p class="caption"></p>
749749
</div>
750750
The contribution from each region to the final pixel color is defined by the coverage of the shape at that pixel, and the operator in use.
@@ -822,7 +822,7 @@ Where:
822822
No regions are enabled.
823823

824824
<div class="figure">
825-
<img src="examples/PD_clr.svg" alt="example of porter duff clear"/>
825+
<img src="examples/PD_clr.svg" alt="example of porter duff clear">
826826
<p class="caption"></p>
827827
</div>
828828
<pre>
@@ -833,7 +833,7 @@ No regions are enabled.
833833
<h4 id="porterduffcompositingoperators_src">Copy</h4>
834834
<p>Only the source will be present.</p>
835835
<div class="figure">
836-
<img src="examples/PD_src.svg" alt="example of porter duff copy"/>
836+
<img src="examples/PD_src.svg" alt="example of porter duff copy">
837837
<p class="caption"></p>
838838
</div>
839839
<pre>
@@ -847,7 +847,7 @@ No regions are enabled.
847847
Only the destination will be present.
848848

849849
<div class="figure">
850-
<img src="examples/PD_dst.svg" alt="example of porter duff destination"/>
850+
<img src="examples/PD_dst.svg" alt="example of porter duff destination">
851851
<p class="caption"></p>
852852
</div>
853853
<pre>
@@ -861,7 +861,7 @@ Only the destination will be present.
861861
Source is placed over the destination.
862862

863863
<div class="figure">
864-
<img src="examples/PD_src-over.svg" alt="example of porter duff source over"/>
864+
<img src="examples/PD_src-over.svg" alt="example of porter duff source over">
865865
<p class="caption"></p>
866866
</div>
867867
<pre>
@@ -874,7 +874,7 @@ Source is placed over the destination.
874874
Destination is placed over the source.
875875

876876
<div class="figure">
877-
<img src="examples/PD_dst-over.svg" alt="example of porter duff destination over"/>
877+
<img src="examples/PD_dst-over.svg" alt="example of porter duff destination over">
878878
<p class="caption"></p>
879879
</div>
880880
<pre>
@@ -888,7 +888,7 @@ Destination is placed over the source.
888888
The source that overlaps the destination, replaces the destination.
889889

890890
<div class="figure">
891-
<img src="examples/PD_src-in.svg" alt="example of porter duff source in"/>
891+
<img src="examples/PD_src-in.svg" alt="example of porter duff source in">
892892
<p class="caption"></p>
893893
</div>
894894
<pre>
@@ -901,7 +901,7 @@ The source that overlaps the destination, replaces the destination.
901901
Destination which overlaps the source, replaces the source.
902902

903903
<div class="figure">
904-
<img src="examples/PD_dst-in.svg" alt="example of porter duff destination in "/>
904+
<img src="examples/PD_dst-in.svg" alt="example of porter duff destination in ">
905905
<p class="caption"></p>
906906
</div>
907907
<pre>
@@ -915,7 +915,7 @@ Destination which overlaps the source, replaces the source.
915915
Source is placed, where it falls outside of the destination.
916916

917917
<div class="figure">
918-
<img src="examples/PD_src-out.svg" alt="example of porter duff source out"/>
918+
<img src="examples/PD_src-out.svg" alt="example of porter duff source out">
919919
<p class="caption"></p>
920920
</div>
921921
<pre>
@@ -929,7 +929,7 @@ Source is placed, where it falls outside of the destination.
929929
Destination is placed, where it falls outside of the source.
930930

931931
<div class="figure">
932-
<img src="examples/PD_dst-out.svg" alt="example of porter duff destination out"/>
932+
<img src="examples/PD_dst-out.svg" alt="example of porter duff destination out">
933933
<p class="caption"></p>
934934
</div>
935935
<pre>
@@ -943,7 +943,7 @@ Destination is placed, where it falls outside of the source.
943943
Source which overlaps the destination, replaces the destination. Destination is placed elsewhere.
944944

945945
<div class="figure">
946-
<img src="examples/PD_src-atop.svg" alt="example of porter duff source atop"/>
946+
<img src="examples/PD_src-atop.svg" alt="example of porter duff source atop">
947947
<p class="caption"></p>
948948
</div>
949949
<pre>
@@ -957,7 +957,7 @@ Source which overlaps the destination, replaces the destination. Destination is
957957
Destination which overlaps the source replaces the source. Source is placed elsewhere.
958958

959959
<div class="figure">
960-
<img src="examples/PD_dst-atop.svg" alt="example of porter duff destination atop"/>
960+
<img src="examples/PD_dst-atop.svg" alt="example of porter duff destination atop">
961961
<p class="caption"></p>
962962
</div>
963963
<pre>
@@ -971,7 +971,7 @@ Destination which overlaps the source replaces the source. Source is placed else
971971
The non-overlapping regions of source and destination are combined.
972972

973973
<div class="figure">
974-
<img src="examples/PD_xor.svg" alt="example of porter duff xor"/>
974+
<img src="examples/PD_xor.svg" alt="example of porter duff xor">
975975
<p class="caption"></p>
976976
</div>
977977
<pre>
@@ -1064,7 +1064,7 @@ with:
10641064

10651065
<div class="example">
10661066
<div class="figure">
1067-
<img src="examples/blend_background_opacity.svg" alt="example of blending with opacity"/>
1067+
<img src="examples/blend_background_opacity.svg" alt="example of blending with opacity">
10681068
<p class="caption"></p>
10691069
</div>
10701070
<p>
@@ -1102,7 +1102,7 @@ This is the default attribute which specifies no blending. The blending formula
11021102
B(Cb, Cs) = Cs
11031103
</pre>
11041104
<div class="figure">
1105-
<img src="examples/normal.png" alt="example of normal blending"/>
1105+
<img src="examples/normal.png" alt="example of normal blending">
11061106
<p class="caption"></p>
11071107
</div>
11081108

@@ -1117,7 +1117,7 @@ The resultant color is always at least as dark as either the source or destinati
11171117
</pre>
11181118
</p>
11191119
<div class="figure">
1120-
<img src="examples/multiply.png" alt="example of multiply blending"/>
1120+
<img src="examples/multiply.png" alt="example of multiply blending">
11211121
<p class="caption"></p>
11221122
</div>
11231123

@@ -1133,7 +1133,7 @@ The result color is always at least as light as either of the two constituent co
11331133
</pre>
11341134
</p>
11351135
<div class="figure">
1136-
<img src="examples/screen.png" alt="example of screen blending"/>
1136+
<img src="examples/screen.png" alt="example of screen blending">
11371137
<p class="caption"></p>
11381138
</div>
11391139

@@ -1150,7 +1150,7 @@ Source colors overlay the <a>backdrop</a> while preserving its highlights and sh
11501150
Overlay is the inverse of the <a value>hard-light</a> blend mode. See the definition of <a value>hard-light</a> for the formula.
11511151

11521152
<div class="figure">
1153-
<img src="examples/overlay.png" alt="example of overlay blending"/>
1153+
<img src="examples/overlay.png" alt="example of overlay blending">
11541154
<p class="caption"></p>
11551155
</div>
11561156

@@ -1164,7 +1164,7 @@ The <a>backdrop</a> is replaced with the source where the source is darker; othe
11641164
B(Cb, Cs) = min(Cb, Cs)
11651165
</pre>
11661166
<div class="figure">
1167-
<img src="examples/darken.png" alt="example of darken blending"/>
1167+
<img src="examples/darken.png" alt="example of darken blending">
11681168
<p class="caption"></p>
11691169
</div>
11701170

@@ -1181,7 +1181,7 @@ The <a>backdrop</a> is replaced with the source where the source is lighter; oth
11811181
Note: The result must be rounded down if it exceeds the range.
11821182

11831183
<div class="figure">
1184-
<img src="examples/lighten.png" alt="example of lighten blending"/>
1184+
<img src="examples/lighten.png" alt="example of lighten blending">
11851185
<p class="caption"></p>
11861186
</div>
11871187

@@ -1217,7 +1217,7 @@ Darkens the <a>backdrop</a> color to reflect the source color. Painting with whi
12171217
</pre>
12181218

12191219
<div class="figure">
1220-
<img src="examples/colorburn.png" alt="example of color burn blending"/>
1220+
<img src="examples/colorburn.png" alt="example of color burn blending">
12211221
<p class="caption"></p>
12221222
</div>
12231223

@@ -1235,7 +1235,7 @@ Multiplies or screens the colors, depending on the source color value. The effec
12351235
See the definition of <a value>multiply</a> and <a value>screen</a> for their formulas.
12361236

12371237
<div class="figure">
1238-
<img src="examples/hardlight.png" alt="example of hard light blending"/>
1238+
<img src="examples/hardlight.png" alt="example of hard light blending">
12391239
<p class="caption"></p>
12401240
</div>
12411241

@@ -1256,7 +1256,7 @@ with
12561256
</pre>
12571257

12581258
<div class="figure">
1259-
<img src="examples/softlight.png" alt="example of soft light blending"/>
1259+
<img src="examples/softlight.png" alt="example of soft light blending">
12601260
<p class="caption"></p>
12611261
</div>
12621262

@@ -1271,7 +1271,7 @@ Painting with white inverts the <a>backdrop</a> color; painting with black produ
12711271
</pre>
12721272
</p>
12731273
<div class="figure">
1274-
<img src="examples/difference.png" alt="example of difference blending"/>
1274+
<img src="examples/difference.png" alt="example of difference blending">
12751275
<p class="caption"></p>
12761276
</div>
12771277

@@ -1284,7 +1284,7 @@ Produces an effect similar to that of the Difference mode but lower in contrast.
12841284
</pre>
12851285
</p>
12861286
<div class="figure">
1287-
<img src="examples/exclusion.png" alt="example of exclusion blending"/>
1287+
<img src="examples/exclusion.png" alt="example of exclusion blending">
12881288
<p class="caption"></p>
12891289
</div>
12901290

@@ -1346,7 +1346,7 @@ Creates a color with the hue of the source color and the saturation and luminosi
13461346
B(Cb, Cs) = SetLum(SetSat(Cs, Sat(Cb)), Lum(Cb))
13471347
</pre>
13481348
<div class="figure">
1349-
<img src="examples/hue.png" alt="example of hue blending"/>
1349+
<img src="examples/hue.png" alt="example of hue blending">
13501350
<p class="caption"></p>
13511351
</div>
13521352

@@ -1358,7 +1358,7 @@ Creates a color with the saturation of the source color and the hue and luminosi
13581358
B(Cb, Cs) = SetLum(SetSat(Cb, Sat(Cs)), Lum(Cb))
13591359
</pre>
13601360
<div class="figure">
1361-
<img src="examples/saturation.png" alt="example of saturation blending"/>
1361+
<img src="examples/saturation.png" alt="example of saturation blending">
13621362
<p class="caption"></p>
13631363
</div>
13641364

@@ -1370,7 +1370,7 @@ Creates a color with the hue and saturation of the source color and the luminosi
13701370
B(Cb, Cs) = SetLum(Cs, Lum(Cb))
13711371
</pre>
13721372
<div class="figure">
1373-
<img src="examples/color.png" alt="example of color blending"/>
1373+
<img src="examples/color.png" alt="example of color blending">
13741374
<p class="caption"></p>
13751375
</div>
13761376

@@ -1381,7 +1381,7 @@ Creates a color with the luminosity of the source color and the hue and saturati
13811381
B(Cb, Cs) = SetLum(Cb, Lum(Cs))
13821382
</pre>
13831383
<div class="figure">
1384-
<img src="examples/luminosity.png" alt="example of luminosity blending"/>
1384+
<img src="examples/luminosity.png" alt="example of luminosity blending">
13851385
<p class="caption"></p>
13861386
</div>
13871387

@@ -1397,7 +1397,7 @@ In the normal group, the elements within the group are composited onto the initi
13971397
In both instances, the result of the group composite is composited onto the land and sky using the normal mix-blend-mode (the default mix-blend-mode applied to the group).
13981398

13991399
<div class="figure">
1400-
<img src="examples/isolate_blend_example.png" alt="example of isolated group blending"/>
1400+
<img src="examples/isolate_blend_example.png" alt="example of isolated group blending">
14011401
<p class="caption"></p>
14021402
</div>
14031403

@@ -1431,7 +1431,7 @@ href="https://www.w3.org/TR/2015/CR-compositing-1-20150113/"> Candidate Recommen
14311431
<li>Clarified that root groups are not necessarily opaque white</li>
14321432
<li>Better definitions for root group and isolating groups</li>
14331433
<li>Consistently use the multiplication symbol × rather than x or *</li>
1434-
<li>Corrected examples that used 'green' where 'lime' was meant</li>
1434+
<li>Corrected examples that used ''green'' where ''lime'' was meant</li>
14351435
<li>Corrected initial value of background-blend-mode </li>
14361436
<li>Assorted markup and linking fixes</li>
14371437
</ul>

0 commit comments

Comments
 (0)