Skip to content
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

test for mixed components #1186

Merged
merged 11 commits into from
Mar 9, 2024

Conversation

romainmenke
Copy link
Member

@romainmenke romainmenke commented Nov 30, 2023

fixes : #1176

  • do we need to cover all color functions?
  • is there mdn data?
  • this is a breaking change, how can we make it safe to roll out?

This is a breaking change because wide gamut colors are linked to the new color notations.

We can create new plugins to downgrade mixed numbers and percentages. But this seems like overkill to me.

Or we can adjust the support data for each notation to also cover this aspect.

But then some users who might have seen wide gamut colors would receive the fallback srgb color when they support the new notations, but not mixed numbers and percentages.

I think this is fine if all latest versions of all browsers support the latest syntax and if those versions have sufficient adoption.

It's not fine if too many people would suddenly lose access to wide gamut colors.


Update:

Enough time has passed to make the actual impact quite small.


CSS authors can avoid this issue for now by not mixing numbers and percentages.

@romainmenke romainmenke marked this pull request as ready for review March 9, 2024 18:09
@romainmenke romainmenke merged commit e73818b into main Mar 9, 2024
7 checks passed
@romainmenke romainmenke deleted the mixed-components--unassuming-cuttlefish-0105db9e41 branch March 9, 2024 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment