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

> 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.

Neither of these questions are specific to these functions.

* Any single value wrapped in a `calc()` will discard the `calc()` at computed-value time.
* Currently, functions returning `<number>` that aren't math functions don't get any special treatment regarding integers; they're just invalid. However, there's no functions defined as returning `<integer>` at all. This seems completely reasonable to change, tho - require integers when provided with `<number-token>`s, but accept `<number>` otherwise and round to the nearest integer. I'll open a separate issue.

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


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

Received on Tuesday, 15 October 2024 20:43:40 UTC