-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-color-5] Allow using channel keywords in any calculation #10983
Comments
I too cannot think of a use case but agree that we should say that channel keywords can be used in calculations. |
Actually I think these just need to be defined as math functions. As it says in the spec, |
Ah, that also answers #10979 then. I thought the distinction with math functions was intentional, for some reason, which I did not understand for 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 I do not know why "naked" math operations (sum/product) are not allowed outside of math functions (except in Anyway, I am ok if this issue is closed with no change, since color channels keywords in |
Correct, it's not, it's just a normal function.
Because, while the boundaries of a calculation with other values is grammatically unambiguous, it's hard to spot with the naked eye. |
So now that |
CSS Values 5 defines progress functions, which are not math functions, but take calculations (
<calc-sum>
) and resolve to<number>
, like math functions (which are calculations).I cannot think of a realistic use case but CSS Color 5 should probably extend the validity of channel keywords to calculations, rather than just math functions:
The text was updated successfully, but these errors were encountered: