-
Notifications
You must be signed in to change notification settings - Fork 642
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-4] Clarify interactions with host syntax #7567
Comments
css-images-4 defines a syntax for gradient interpolation in a particular space - see eg https://drafts.csswg.org/css-images-4/#linear-gradients |
Yes. "should" define because currently it hard-codes gamma-encoded sRGB and does not allow any other option.
Yes. Gradients already does, as @faceless2 pointed out. |
linear-gradient(in hsl longer to right, #F01, #081); |
Hi @sesse did these replies answer your question? |
It did, but it would be nice to have explicit references in the text, perhaps? Something like “these declarations are not used by this spec itself, only exposed so that other specifications can use them; see e.g. use in [CSS-IMAGES-4]#reference”? |
Ah, fair enough. CSS being a modular specification, it is common for one module to expose things so that other modules can do the same thing consistently, but will add wording to that effect here. |
The spec goes to some length about what host syntax is, and specifies: “These features are collectively termed the host syntax. The host syntax should define what the default interpolation space should be for each case, and optionally provide syntax for authors to override this default. If such syntax is part of a property value, it should use a token, defined below for easy reference from other specifications. ”
However, it's not clear at all what “the host syntax should define” means. Does this mean that the spec expects e.g. that the CSS animations spec be changed to have new CSS properties for interpolation color space? (And similar for gradients and filters.) There is new syntax in §12.1 (“Color Space for Interpolation”), but it doesn't seem to be connected to anything in the larger scope of CSS. Is something missing from the color spec, or will other specs fill this in at some future date?
Concretely, if I as an author would want to make a gradient that's interpolating using (say) HSL along the longer axis, how would I express that? Can I do that at all currently?
The text was updated successfully, but these errors were encountered: