@@ -219,10 +219,9 @@ Mixing Colors: the ''color-mix()'' Function {#color-mix}
219
219
(an equal mix of the two colors).
220
220
3. Otherwise, if <var> p2</var> is omitted, it becomes 100% - <var> p1</var>
221
221
4. Otherwise, if <var> p1</var> is omitted, it becomes 100% - <var> p2</var>
222
- 5. If the percentages sum to zero, the function is invalid.
223
- 6. Otherwise, if both are provided and add up to greater than 100%,
222
+ 5. Otherwise, if both are provided and add up to greater than 100%,
224
223
they are scaled accordingly so that they add up to 100%.
225
- 7 . Otherwise, if both are provided and add up to less than 100%,
224
+ 6 . Otherwise, if both are provided and add up to less than 100%,
226
225
the sum is saved as an alpha multiplier.
227
226
They are then scaled accordingly so that they add up to 100%.
228
227
@@ -231,6 +230,10 @@ Mixing Colors: the ''color-mix()'' Function {#color-mix}
231
230
and
232
231
<var> p2</var> becomes <var> p2</var> / (<var> p1</var> + <var> p2</var> ).
233
232
233
+ <!-- @@ Need to handle the sum to zero case to generate transparent black
234
+ https://github.com/w3c/csswg-drafts/issues/11678#issuecomment-2686226875
235
+ -->
236
+
234
237
<wpt>
235
238
color-mix-percents-01.html
236
239
color-mix-percents-02.html
0 commit comments