- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 06 Jan 2022 00:31:14 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-values-4] Validity of generic interpolation function mix()`, and agreed to the following: * `RESOLVED: The mix interpolation function will only be used for top-level values with various discussed caveats. mix is the name of the top level interpolation` <details><summary>The full IRC log of that discussion</summary> <dael> Topic: [css-values-4] Validity of generic interpolation function mix()<br> <dael> github: https://github.com/w3c/csswg-drafts/issues/6700<br> <dael> TabAtkins: Making sure we agree what generic interpolation does and if it's valid<br> <dael> astearns: Only concern is last comment asked for fantasai to clarify<br> <dael> TabAtkins: True. But not relivent for this, I think.<br> <dael> TabAtkins: We have a couple of mixing functions lick color-mix and calc. These functions have a type. Color-mix is a color, valid whereever a color is. But generic interpolation function, currently called mix, I don't believe can be same<br> <dael> TabAtkins: It can interp things without describable types. Interp of a box shadow is only valid in box shadow.<br> <dael> TabAtkins: Prop is mix is only allowed as top-level value of a property. That's all it would be produced as by UA, but if authors use it they could not combine with other things. Can't mix 2 box shadows and then add inset.<br> <smfr> q+<br> <dael> TabAtkins: I believe that's all this is about, verifying that's what we want for the grammar of this function<br> <dael> TabAtkins: If no one disagrees we can resolve<br> <astearns> ack smfr<br> <dael> smfr: Questions- if you have prop with comma sep values like backgrounds, can you use mix in the list or is the whole list a mix?<br> <dael> TabAtkins: Great question. Hmm.<br> <dael> TabAtkins: I think still the entire thing. Even in lists of comma sep we can have distinct syntaxes at a position like bg where only color in the last. We couldn't interp a mix with a color unless it's final. So would have to be the entire thing<br> <dael> smfr: High level, how does this interact with animations? Can I use it in keyframes?<br> <dael> TabAtkins: SHould be usable anywhere that accepts a value. Value is generatable by an animation so it should be a valid value. You can interp to this. Things you can do by hand should allow explicitly.<br> <dael> smfr: keyframe? only animatable properties?<br> <dael> TabAtkins: Yes, if prop wasn't animatable then mix wouldn't have a meaning. Great question and not in spec. I suspect should be properties that are not animatable mix isinvaid at parse time.<br> <dael> smfr: If you can spec in keyframes implies mix can nest<br> <dael> TabAtkins: because you can mix between and mixed value and something?<br> <dael> smfr: Yeah<br> <dael> TabAtkins: True. Good clarification. mix should be able to be an entire argument of the mix. You should be able to mix mixes<br> <dael> smfr: Shorthands vs longhands when mix is the enitre value?<br> <dael> TabAtkins: We had an answer. I believe it needs to be similar to variable in shorthands, but don't recall exactly. Whatever it was, we can't rely syntaxtically that something is a shorthand so whatever we define has to work well for shorthands.<br> <dael> TabAtkins: Mix should be allowed in a shorthand. Exact interp I can't answer but should be as reasonable as can make it<br> <dael> smfr: SOunds good<br> <dael> astearns: Looking for resolution to define mix as only top level<br> <dael> astearns: Issue also talks about adding another lower level value. punt that for now?<br> <dael> TabAtkins: Yeah, it's separate<br> <dael> astearns: But if we expect lower question is which gets the shorter name<br> <dael> TabAtkins: My arguement is the existing lower-level have longer names like color-mix. Completely usuable anywhere should get the shortest name. no way to be generic low-level because we need to know type to parse. Interp at the value level will be type specific. mix should have short names and others longer and more specific<br> <dael> astearns: Other questions or ideas?<br> <dael> astearns: Prop: The mix interpolation function will only be used for top-level values with various discussed caveats<br> <dael> TabAtkins: Sound also resolve on name<br> <dael> astearns: And mix is the name of the top level interpolation<br> <dael> astearns: Objections<br> <dael> RESOLVED: The mix interpolation function will only be used for top-level values with various discussed caveats. mix is the name of the top level interpolation<br> <dael> astearns: Since this issue discusses lower level, is that captured elsewhere or should we open another issue<br> <dael> TabAtkins: One talked about is numeric and that does have an issue for it<br> <dael> astearns: I'll see if I can find it and link it<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6700#issuecomment-1006186578 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 6 January 2022 00:31:16 UTC