- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Mon, 14 Aug 2023 12:59:04 +0000
- To: public-css-archive@w3.org
My point is that with `calc(p)` you are representing a function, not a `<number>`. In other words, you want to drop https://drafts.csswg.org/css-values/#calc-computed-value > with used value time information, a [math function](https://drafts.csswg.org/css-values/#math-function) always simplifies down to a single numeric value I would instead prefer some new syntax to express functions, like ```css animation-timing-function: (p) => calc(p); ``` `animation-timing-function` would accept functions with a `<number>` parameter that return a `<number>`, so we know that `p` is a `<number>`, then `calc()` can do the type checking with `«[ ]»`, and in this case it produces a `<number>`, as expected by `animation-timing-function`. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9184#issuecomment-1677269142 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 14 August 2023 12:59:06 UTC