← 返回首页
[css-values-4] Incorrect resolved type of math functions representing `<number>` · Issue #7486 · w3c/csswg-drafts · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

[css-values-4] Incorrect resolved type of math functions representing <number> #7486

New issue
New issue

Description

In CSS Values 4, 10.9. Type Checking:

Math functions themselves have types, according to their contained calculations:

  • [...]
  • The type of a sign() expression is «[ "number" → 1 ]».
  • The type of a sin(), cos(), or tan() expression is «[ "number" → 1 ]».
  • [...]
  • The type of a pow(), sqrt(), log(), or exp() expression is «[ "number" → 1 ]».

[...]

A math function resolves to <number>, <length>, <angle>, <time>, <frequency>, <resolution>, <flex>, or <percentage> according to which of those productions its type matches.

I do not understand the type defined for these functions. I expect «[ ]» because from CSS Typed OM:

A type matches <number> if it has no non-zero entries and its percent hint is null.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Footer

      © 2026 GitHub, Inc.