You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-color] handling of powerless and missing components #1334
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web features (from the web-features project) which are referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
To find feature IDs, use the web-features explorer.
color-mix()
Feature color-mix()
ID: color-mix
Name: color-mix()
Description: The color-mix() function mixes two colors in a given color space and by a given amount. Commonly, lighter or darker variations of a color are created by mixing with white or black.
Description: Gradient interpolation controls how the colors between gradient stops are calculated in CSS. For example, linear-gradient(to right in oklch longer hue, red, red); calculates in the oklch color space, with the hue going all the way around the hue circle from red back to red.
Description: The from keyword for color functions (color(), hsl(), oklch(), etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS).
Of those web-features most seem to be fully supported everywhere already. Linking to lots of features that seem to already be widely available doesn't help the decision making process much.
If this is about one or more bugs in the implementation of existing features the best thing would be to link to browser engine bug reports covering the problem.
If this is about an addition on the spec side that's not yet supported the ideal thing would be to have a feature covering that specific addition. That may not yet exist; if so it's OK to say that and we could help get the feature created. If there's already an MDN page or compat table covering the missing functionality linking to that would also be very helpful.
What has changed recently is that the spec has been improved and clarified in various ways and that there is a lot more test coverage. Adding it to interop will hopefully push implementors to fix this soon and around the same time.
I think it's fine to create a web feature for this specifically.
But important to make the distinction between "browsers implemented something" and "browsers implemented the correct thing". For example all browsers have support for the none keyword and yet no browser does this correctly.
Of those web-features most seem to be fully supported everywhere already. Linking to lots of features that seem to already be widely available doesn't help the decision making process much.
Yes, the easy cases are well supported and baseline. This is about the (small, but important) harder, or more recently clarified, parts that are poorly supported, and hinder content authors who expect them to work.
Even for color-mix(), which of the four current web features has the highest baseline rating of Widely Available, the sea of red in these specific tests and the overall pass rates could hardly be claimed to be "fully supported everywhere".
Subtest Total | 197/678 | 197/678 | 291/678 | 410/678
For example all browsers have support for the none keyword and yet no browser does this correctly.
Are you saying you think the browsers engines have fundamentally wrong implementations of none, or just that there are bugs / not all browsers have kept up with changes to the spec?
The biggest blind spot for me when it comes to none is with relative color syntax + calc(). I don't recall where the specs stand on this actually. Last I recall, there wasn't consensus on how it should work, due to having to deal with analogous components of different scales (like between oklab and lab). If it would be useful, we could implement the non-calc support (that is, oklab(from oklab(none none none) l a b) == oklab(none none none)) but wasn't clear to me if that was useful without the calc support. Doing this would be pretty trivial.
Are you saying you think the browsers engines have fundamentally wrong implementations of none, or just that there are bugs / not all browsers have kept up with changes to the spec?
With my author hat on, I am unsure if the distinction between "fundamentally wrong" and "there are bugs" matters. It doesn't work as intended by the spec and makes common use cases for authors unpredictable or impossible. But I don't have a strong opinion on how we classify or document this.
One of the biggest issues and causing the largest number of WPT failures is indeed eagerly converting none to 0.
Other meaningful additions/changes to the spec were:
hsl/hwb with none components is serialized as hsl/hwb and not as color(srgb ...)
Yes, none in calc() is out of scope.
I also have no idea how that would work (both for implementers and for authors) and if that would actually be useful. I get the underlying idea that preserving none as much as possible is good but I share your concerns that the scales are completely different between different notations.
Activity
github-actions commentedon Sep 3, 2026
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web features (from the web-features project) which are referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
color-mix()
Feature color-mix()
color-mix()function mixes two colors in a given color space and by a given amount. Commonly, lighter or darker variations of a color are created by mixing with white or black.color-mix()CSS functioncolor-mix() with three or more colors
Feature color-mix() with three or more colors
color-mix()CSS function accepts three or more colors.Gradient interpolation
Feature Gradient interpolation
linear-gradient(to right in oklch longer hue, red, red);calculates in theoklchcolor space, with the hue going all the way around the hue circle from red back to red.<color-interpolation-method>CSS type,<hue-interpolation-method>CSS typeRelative colors
Feature Relative colors
fromkeyword for color functions (color(),hsl(),oklch(), etc.) creates a new color based on a given color by modifying the values of the input color. Also known as relative color syntax (RCS).svgeesus commentedon Sep 11, 2026
More related wpt
https://wpt.fyi/results/css/css-color/parsing/color-valid-color-mix-function.html?label=experimental&label=master&aligned
https://wpt.fyi/results/css/css-images/gradient/gradient-none-interpolation.html?label=experimental&label=master&aligned
https://wpt.fyi/results/css/css-conditional/container-queries/query-style-color.html?label=experimental&label=master&aligned
Applicable web features:
svgeesus commentedon Sep 11, 2026
@romainmenke you might want to add those web features to your initial post (I can't edit it)
jgraham commentedon Sep 11, 2026
Of those web-features most seem to be fully supported everywhere already. Linking to lots of features that seem to already be widely available doesn't help the decision making process much.
If this is about one or more bugs in the implementation of existing features the best thing would be to link to browser engine bug reports covering the problem.
If this is about an addition on the spec side that's not yet supported the ideal thing would be to have a feature covering that specific addition. That may not yet exist; if so it's OK to say that and we could help get the feature created. If there's already an MDN page or compat table covering the missing functionality linking to that would also be very helpful.
romainmenke commentedon Sep 11, 2026
This isn't a new addition to the spec.
Most accurate to say that browsers implemented this incorrectly 😅
There is an existing MDN section: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value#missing_color_components
and a bit further down the page: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value#interpolation_with_missing_components
What has changed recently is that the spec has been improved and clarified in various ways and that there is a lot more test coverage. Adding it to interop will hopefully push implementors to fix this soon and around the same time.
I think it's fine to create a web feature for this specifically.
But important to make the distinction between "browsers implemented something" and "browsers implemented the correct thing". For example all browsers have support for the
nonekeyword and yet no browser does this correctly.svgeesus commentedon Sep 11, 2026
Yes, the easy cases are well supported and baseline. This is about the (small, but important) harder, or more recently clarified, parts that are poorly supported, and hinder content authors who expect them to work.
svgeesus commentedon Sep 11, 2026
@weinig do you have opinions on this proposed focus area?
svgeesus commentedon Sep 11, 2026
Even for
Subtest Total | 197/678 | 197/678 | 291/678 | 410/678color-mix(), which of the four current web features has the highest baseline rating of Widely Available, the sea of red in these specific tests and the overall pass rates could hardly be claimed to be "fully supported everywhere".weinig commentedon Sep 13, 2026
Are you saying you think the browsers engines have fundamentally wrong implementations of
none, or just that there are bugs / not all browsers have kept up with changes to the spec?The biggest blind spot for me when it comes to
noneis with relative color syntax + calc(). I don't recall where the specs stand on this actually. Last I recall, there wasn't consensus on how it should work, due to having to deal with analogous components of different scales (like between oklab and lab). If it would be useful, we could implement the non-calc support (that is, oklab(from oklab(none none none) l a b) == oklab(none none none)) but wasn't clear to me if that was useful without the calc support. Doing this would be pretty trivial.romainmenke commentedon Sep 13, 2026
With my author hat on, I am unsure if the distinction between "fundamentally wrong" and "there are bugs" matters. It doesn't work as intended by the spec and makes common use cases for authors unpredictable or impossible. But I don't have a strong opinion on how we classify or document this.
One of the biggest issues and causing the largest number of WPT failures is indeed eagerly converting
noneto0.Other meaningful additions/changes to the spec were:
hsl/hwbwithnonecomponents is serialized ashsl/hwband not ascolor(srgb ...)That is great to hear!
Yes,
noneincalc()is out of scope.I also have no idea how that would work (both for implementers and for authors) and if that would actually be useful. I get the underlying idea that preserving
noneas much as possible is good but I share your concerns that the scales are completely different between different notations.romainmenke commentedon Oct 9, 2026
Thank you @weinig for all the work in Webkit : https://wpt.fyi/results/css/css-color/parsing?label=master&max-count=1