Skip to content

Commit 2c6c996

Browse files
committed
[css-color] Export term premultiplied, link to it consistently w3c#11238
1 parent 45c9b0f commit 2c6c996

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

css-color-4/Overview.bs

+6-6
Original file line numberDiff line numberDiff line change
@@ -4595,9 +4595,9 @@ Color Interpolation</h2>
45954595
</li>
45964596
<li>(if required) re-inserting [=carried forward=] values in the converted colors</li>
45974597
<li>(if required) fixing up the hues, depending on the selected <<hue-interpolation-method>></li>
4598-
<li>changing the color components to premultiplied form</li>
4598+
<li>changing the color components to [=premultiplied=] form</li>
45994599
<li>linearly interpolating each component of the computed value of the color separately</li>
4600-
<li>undoing premultiplication</li>
4600+
<li>undoing [=premultiplied|premultiplication=]</li>
46014601
</ol>
46024602

46034603

@@ -4894,7 +4894,7 @@ Interpolating with Missing Components</h3>
48944894
</div>
48954895

48964896
If the carried forward [=missing component=]
4897-
is alpha, the color must be premultiplied with this carried forward value,
4897+
is alpha, the color must be [=premultiplied=] with this carried forward value,
48984898
not with the zero value that would have resulted from color conversion.
48994899

49004900
<div class="example" id="ex-oklch-missing-alpha">
@@ -4926,15 +4926,15 @@ Interpolating with Missing Components</h3>
49264926
Interpolating with Alpha</h3>
49274927

49284928
When the colors to be interpolated are not fully opaque,
4929-
they are transformed into <dfn export>premultiplied color values</dfn>
4929+
they are first <dfn export>premultiplied</dfn>
49304930
as follows:
49314931

49324932
* If the alpha value is ''none'', the premultiplied value is the un-premultiplied value. Otherwise,
49334933
* If any component value is ''none'', the premultiplied value is also ''none''.
49344934
* For [=rectangular orthogonal color=] coordinate systems, all component values are multiplied by the alpha value.
4935-
* For [=cylindrical polar color=] coordinate systems, the hue angle is <em>not</em> premultiplied, but the other two axes are premultiplied.
4935+
* For [=cylindrical polar color=] coordinate systems, the hue angle is <em>not</em> premultiplied, but the other two axes <em>are</em> premultiplied.
49364936

4937-
To obtain a color value from a premultipled color value,
4937+
To obtain a color value from a premultiplied color value,
49384938

49394939
* If the interpolated alpha value is zero or ''none'',
49404940
the un-premultiplied value is the premultiplied value. Otherwise,

css-color-5/Overview.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -503,21 +503,21 @@ The choice of mixing color space can have a large effect on the end result.
503503
So far, all the ''color-mix()'' examples
504504
have used fully opaque colors.
505505
To simplify the examples,
506-
the premultilication and unpremultiplication steps
506+
the [=premultiplied|premultilication=] and unpremultiplication steps
507507
were omitted
508508
because these would simply multiply by 1, and divide by 1,
509509
so the result would be unchanged.
510510

511511
In the general case,
512512
colors may have non-unity alpha components
513-
and thus the premultiply, interpolate, unpremultiply steps
513+
and thus the [=premultiplied|premultiply=], interpolate, unpremultiply steps
514514
must not be omitted.
515515

516516
<div class="example" id="ex-premultiply-srgb">
517517
This example is 25% semi-opaque red
518518
and 75% semi-opaque green.
519519
mixed in sRGB.
520-
Both the correct (premultiplied)
520+
Both the correct ([=premultiplied=])
521521
and incorrect (non-premultiplied)
522522
workings are shown.
523523

0 commit comments

Comments
 (0)