Re: [csswg-drafts] [css-color-5] Allow using channel keywords in any calculation (#10983)

Ah, that also answers #10979 then.

I thought the distinction with math functions was intentional, for some reason, which I did not understand for `progress()`.

I am more interested in clarifying the processing of these new "numeric substitution functions" than in semantic correctness of "math function". Specifically in this issue, in the validity of color channel keywords used as their terms.

That said, I also thought than generalizing with (functional) calculations could possibly be more correct and useful.

I think serializing `calc(sibling-*())` as a component of a declared value, with or without `calc()`, currently depends on whether `sibling-*()` is a math function, which it probably is not.

I do not know why "naked" math operations (sum/product) are not allowed outside of math functions (except in `calc-size()`), but assuming they were, this generalization would cover `rgb(from red r/2 0 0)`.

Anyway, I am ok if this issue is closed with no change, since color channels keywords in `progress()` has been clarified.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10983#issuecomment-2390726196 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 3 October 2024 07:36:21 UTC