Skip to content

Commit f6e5f3c

Browse files
committed
[css-color] Remove the "invalid if sum to zero" wording, #11678
1 parent 56120cf commit f6e5f3c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

css-color-5/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,9 @@ Mixing Colors: the ''color-mix()'' Function {#color-mix}
219219
(an equal mix of the two colors).
220220
3. Otherwise, if <var>p2</var> is omitted, it becomes 100% - <var>p1</var>
221221
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%,
224223
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%,
226225
the sum is saved as an alpha multiplier.
227226
They are then scaled accordingly so that they add up to 100%.
228227

@@ -231,6 +230,10 @@ Mixing Colors: the ''color-mix()'' Function {#color-mix}
231230
and
232231
<var>p2</var> becomes <var>p2</var> / (<var>p1</var> + <var>p2</var>).
233232

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+
234237
<wpt>
235238
color-mix-percents-01.html
236239
color-mix-percents-02.html

css-color-hdr-1/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,9 @@ Mixing Dynamic Range Limits: the ''dynamic-range-limit-mix()'' function {#dynami
447447
parsing.html
448448
</wpt>
449449

450-
If the sum of all percentages is 0%, then the function is invalid.
451-
450+
<!-- @@ handle the case of percentages summing to zero. Distribute equally?
451+
https://github.com/w3c/csswg-drafts/issues/11678#issuecomment-2686103826
452+
-->
452453
<h3 id="computing-dynamic-range-limit">
453454
Computed Value for 'dynamic-range-limit'
454455
</h3>

0 commit comments

Comments
 (0)