Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-values-4] Math functions have both a type and a return type, is this intended? #11369

Open
AtkinsSJ opened this issue Dec 13, 2024 · 0 comments
Labels
css-values-4 Current Work

Comments

@AtkinsSJ
Copy link
Contributor

AtkinsSJ commented Dec 13, 2024

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 says:

sign(), sin(), cos(), tan(), pow(), sqrt(), log(), exp()
«[ ]» (empty map).

But the prose defining sin() says:

The sin(A), cos(A), and tan(A) functions [...] They all represent a <number>, with the return type made 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!

@Loirooriol Loirooriol added the css-values-4 Current Work label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-values-4 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants