-
Notifications
You must be signed in to change notification settings - Fork 717
[css-values-5] Should progress functions have a calculation tree as their internal representation? #10979
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
Comments
I've now (in 5afd5de) marked progress() as a math function, so it gets caught by the general terminology about internal representation. The other two are not math functions, just ordinary functions that resolve to a number, and evaluate their own calculation arguments in a special context. I've added a bit of text to Values 4 (in https://drafts.csswg.org/css-values-4/#calc-type-checking) about how contexts get determined, which hopefully makes this clearer. |
Thank you, this is useful. About clarifying how to determine the type of
For what is worth, I prefer to not consider them as Anyway, I am more interested in the observable output. For exemple, whether |
Neither of these questions are specific to these functions.
|
So
There is |
I'm not sure what you mean. The calc() unwrapping is an aspect of the calc, not an aspect of what it contains. It just needs its contents to be a simple numeric value. |
The
To be more explicit about how I see this... defining |
Like math functions. This would help to clarify:
progress()
can be unwrapped during the simplification of a calculation treecalc(progress(...))
should serialize as is or withprogress(...)
as a component of a declared valueThe text was updated successfully, but these errors were encountered: