- From: Sam Atkins via GitHub <sysbot+gh@w3.org>
- Date: Fri, 13 Dec 2024 15:37:48 +0000
- To: public-css-archive@w3.org
AtkinsSJ has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-4] Math functions have both a type and a return type, is this intended? == Math functions have both a "type" and a "return type" defined, which are subtly different. It's not clear to me whether this is an intentional distinction or not. I started writing this issue because I thought it was a bug but now I've stared at it for a while I'm not sure. Thought it was better to raise the issue anyway. As an example: The [math function type summary](https://drafts.csswg.org/css-values-4/#ref-for-math-function%E2%91%A0%E2%91%A8) says: > [sign()](https://drafts.csswg.org/css-values-4/#funcdef-sign), [sin()](https://drafts.csswg.org/css-values-4/#funcdef-sin), [cos()](https://drafts.csswg.org/css-values-4/#funcdef-cos), [tan()](https://drafts.csswg.org/css-values-4/#funcdef-tan), [pow()](https://drafts.csswg.org/css-values-4/#funcdef-pow), [sqrt()](https://drafts.csswg.org/css-values-4/#funcdef-sqrt), [log()](https://drafts.csswg.org/css-values-4/#funcdef-log), [exp()](https://drafts.csswg.org/css-values-4/#funcdef-exp) «[ ]» (empty map). But the [prose defining `sin()`](https://drafts.csswg.org/css-values-4/#funcdef-sin) says: > The sin(A), cos(A), and tan(A) functions [...] They all represent a `<number>`, with the return type [made consistent](https://drafts.csswg.org/css-values-4/#css-make-a-type-consistent) with the input calculation’s type. If I'm reading that right, it means the return type is either «[ ]» or «[ ]» with a percent hint. Some clarification would be helpful. Thanks! Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11369 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 13 December 2024 15:37:49 UTC