- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Tue, 31 Mar 2026 22:31:54 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-color-5] `color-mix()` serialization is outdated``, and agreed to the following: * `RESOLVED: Require serializing without color space if it matches the default (oklab)` * `RESOLVED: Multiple identical entries do not collapse.` * `RESOLVED: Colors are not collapsed` * `RESOLVED: If percentages for N arguments are 1/N (and are therefore all omittable), omit them.` * `RESOLVED: If percentages for N arguments are 1/N (and are therefore all omittable), omit them. Otherwise serialize the percentages (even if originally omitted).` * `ACTION: update spec to handle hue-interpolation method` <details><summary>The full IRC log of that discussion</summary> <emilio> ChrisL: it is<br> <emilio> ... I had some problems with how to update it<br> <emilio> ... it used to be the case that you had two colors and if you don't specify them it's 50% and 50%<br> <emilio> ... so with more colors I'd expect 100% / N<br> <fantasai> emilio: Some implementation updates already, so can check what happens<br> <emilio> Rossen: is there any other sensible alternative?<br> <Rossen> ack fantasai<br> <emilio> fantasai: some questions about color-interpolation-method being optional<br> <emilio> ... we are probably happy to make that change?<br> <emilio> ChrisL: we already resolved on it, but yeah it should serialize to the shortest value (omit oklab if needed)<br> <emilio> PROPOSED: Allow to serialize without color space if it matches the default (oklab)<br> <emilio> s/Allow to serialize/Require serializing<br> <emilio> emilio: potential compat is `color-mix(in oklab,` now serializes without<br> <emilio> ... but probably fine<br> <emilio> fantasai: another one would be do we ever plan to change the default<br> <emilio> emilio: Even if we changed it we would potentially be breaking stuff so I'd rather do the simple thing and omit oklab<br> <emilio> PROPOSED: Require serializing without color space if it matches the default (oklab)<br> <emilio> RESOLVED: Require serializing without color space if it matches the default (oklab)<br> <emilio> ChrisL: other question is serializing with identical colors, like `color-mix(green, green, green, red)`, so you need to preserve them<br> <emilio> TabAtkins: you could do `green 75%, red 25%)`<br> <fantasai> PROPOSED: Multiple identical entries do not collapse.<br> <fantasai> RESOLVED: Multiple identical entries do not collapse.<br> <kbabbitt> +1<br> <emilio> RESOLVED: Colors are not collapsed<br> <emilio> fantasai: if you have both percentages 50% do you serialize them?<br> <emilio> ChrisL: the current algorithm omits the percentages<br> <fantasai> PROPOSED: If percentages for N arguments are 1/N (and are therefore all omittable), omit them.<br> <emilio> fantasai: if I write `red 50%, green 25%, blue 25%`, how do we serialize that out?<br> <fantasai> color-mix(red 50%, green 25%, blue 25%)<br> <fantasai> color-mix(red 50%, green, blue)<br> <fantasai> color-mix(red, green 25%, blue 25%)<br> <lea> q?<br> <lea> q+<br> <emilio> fantasai: we don't know what you meant, I suggest we drop the percents if all drop<br> <emilio> ChrisL: the current text says "if both are 50% you drop them, otherwise you don't"<br> <emilio> ... I'd like to preserve that, only drop if all are omittable<br> <Rossen> ack lea<br> <emilio> lea: we do have this rule<br> <emilio> ... about shortest serialization<br> <emilio> ... could be useful?<br> <emilio> emilio: within reason :)<br> <emilio> fantasai: if you have four colors there's no single answer<br> <ChrisL> as simple as possible. but no simpler<br> <lea> `red 30%, green 30%, yellow 20%, purple 20%`<br> <fantasai> PROPOSED: If percentages for N arguments are 1/N (and are therefore all omittable), omit them. Otherwise serialize the percentages (even if originally omitted).<br> <lea> +1<br> <emilio> RESOLVED: If percentages for N arguments are 1/N (and are therefore all omittable), omit them.<br> <fantasai> RESOLVED: If percentages for N arguments are 1/N (and are therefore all omittable), omit them. Otherwise serialize the percentages (even if originally omitted).<br> <fantasai> ACTION: update spec to handle hue-interpolation method<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13320#issuecomment-4166024211 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 31 March 2026 22:31:55 UTC