Skip to content

Commit c686523

Browse files
committed
[css-color-5] Pass the normalization flag.
1 parent 85cd6d2 commit c686523

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

css-color-5/Overview.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,13 @@ Mixing Colors: the ''color-mix()'' Function {#color-mix}
271271
To <dfn export>calculate a color-mix()</dfn>:
272272

273273
1. [=Normalize mix percentages=] from the list of [=mix items=] passed to the function,
274+
with the "forced normalization" flag set to true,
274275
letting |items| and |leftover| be the result.
275-
2. Let |alpha mult| be <code>1 - |leftover|</code>,
276-
interpreting |leftover| as a number between 0 and 1.
277-
3. If |alpha mult| is 0,
276+
2. If |leftover| is 100%,
278277
return [=transparent black=],
279278
converted to the specified interpolation <<color-space>>.
279+
3. Let |alpha mult| be <code>1 - |leftover|</code>,
280+
interpreting |leftover| as a number between 0 and 1.
280281
4. If |items| is length 1,
281282
set |color| to the color of that sole item.
282283

0 commit comments

Comments
 (0)