Skip to content

Commit e911eb7

Browse files
committed
[css-color-4] Account for none alpha in premultiplication w3c#7253
1 parent 65681d7 commit e911eb7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

css-color-4/Overview.bs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4870,6 +4870,7 @@ Interpolating with alpha</h3>
48704870
they are transformed into <dfn export>premultiplied color values</dfn>
48714871
as follows:
48724872

4873+
* If the alpha value is ''none'', the premultiplied value is the un-premultiplied value. Otherwise,
48734874
* If any component value is ''none'', the premultiplied value is also ''none''.
48744875
* For [=rectangular orthogonal color=] coordinate systems,
48754876
all component values are multiplied by the alpha value.
@@ -4879,10 +4880,10 @@ Interpolating with alpha</h3>
48794880

48804881
To obtain a color value from a premultipled color value,
48814882

4883+
* If the interpolated alpha value is zero or ''none'',
4884+
the un-premultiplied value is the premultiplied value. Otherwise,
48824885
* If any component value is ''none'',
48834886
the un-premultiplied value is also ''none''.
4884-
* If the alpha value is zero,
4885-
the un-premultiplied value is the premultiplied value
48864887
* otherwise, each component which had been premultiplied
48874888
is divided by the interpolated alpha value.
48884889

@@ -5885,6 +5886,14 @@ parsing/relative-color-valid.html
58855886
<h2 id='changes' class='no-num'>
58865887
Changes</h2>
58875888

5889+
<h3 id="changes-from-20220428">Changes since the
5890+
<a href="https://www.w3.org/TR/2022/WD-css-color-4-20220428/">Working Draft of 28 April 2022</a>
5891+
</h3>
5892+
5893+
<ul>
5894+
<!-- to 5 May 2022 -->
5895+
<li>Accounted for ''none'' alpha in premultiplication and un-premultiplication</li>
5896+
58885897
<h3 id="changes-from-20211215">Changes since the
58895898
<a href="https://www.w3.org/TR/2021/WD-css-color-4-20211215/">Working Draft of 15 December 2021</a>
58905899
</h3>

0 commit comments

Comments
 (0)