Re: [csswg-drafts] [css-values-5] Should progress functions have a calculation tree as their internal representation? (#10979)

Thank you, this is useful.

About clarifying how to [determine the type](https://drafts.csswg.org/css-values-4/#determine-the-type-of-a-calculation) 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.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10979#issuecomment-2401431450 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 October 2024 06:32:52 UTC