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
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.
About clarifying how to determine the type of media-progress(), container-progress(), and also tree-counting functions... the specs are actually already clear: they are <number>s.
Anything else is a terminal value, whose type is determined based on its CSS type.
For what is worth, I prefer to not consider them as <number>s, but as resolving to a <number>.
Anyway, I am more interested in the observable output. For exemple, whether calc(media-progress(...)) should serialize with or without calc(), and whether media-progress() matching <integer> should be clamped at computed-value time.
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: