Skip to content

[css-values-5] Computed (vs used) value of mix() functions #12290

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

Open
fantasai opened this issue Jun 5, 2025 · 0 comments
Open

[css-values-5] Computed (vs used) value of mix() functions #12290

fantasai opened this issue Jun 5, 2025 · 0 comments

Comments

@fantasai
Copy link
Collaborator

fantasai commented Jun 5, 2025

The mix() family of functions compute a weighted average from a list of items and corresponding percentages.

Some mix() functions can be computed through to a final value, but others (e.g. calc-mix() combining percentages and lengths) cannot until used value time.

When they cannot be computed to a single value, should these functions:

  • Simplify as much as possible given the information available, potentially collapsing some items in the list but not others?
  • Or simplify each argument individually, preserving the number of items in the list?

Tab and I are currently specifying the latter option, but wanted to hear from others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant