Skip to content

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

Open
@AtkinsSJ

Description

@AtkinsSJ

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions