-
Notifications
You must be signed in to change notification settings - Fork 658
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-images-4] Add color space parameter to all gradient functions #6369
Comments
I agree, as already used on And yes, for cylindrical polar color spaces like HSL, HWB and LCH, an optional keyword for the hue direction is needed. The default value would be the shorter hue arc. |
Editorial: We should define a |
Maybe we should also add the |
I don’t understand what you’re proposing. Add it where? |
I think Chris is just agreeing with you that we should rename the hue-interpolation keywords generally to have a hue- prefix. ^_^ Anyway agree, the gradient grammars can easily handle having these added in. It looks like the hue-interpolation keyword is placed after or between colors, not used as a general method over the entire interpolation, right? So we'd put it in the |
Oh yeah, the production I was proposing should definitely go in Color, I didn't realize that was ambiguous. I think something like:
If we want that kind of granularity, we should add the entire
Note that there should still be a In fact, the more I think about, the more I think there should just be a gradient-wide argument, and if authors request more granularity, then we can add it to color hint.
I had not actually realized this, this is new edit. I …don't think this should be the case. This is an argument for the interpolation, not an argument for the color. |
There is also some discussion of this in #5833. |
This has now been done, see CSS Color 4: 13.1. Color space for interpolation which defines
which is used in CSS Images 4: 3.1. Linear Gradients: the linear-gradient() notation |
We should add an
in <colorspace>
keyword to all gradient functions to customize the color space interpolation happens in. Probably also need to be able to provide color-space specific parameters, likehue-shorter
for polar spaces too.The text was updated successfully, but these errors were encountered: