Skip to content

[css-values] Resolution of math functions #2665

@Loirooriol

Description

@Loirooriol

From https://drafts.csswg.org/css-values-4/#calc-notation,

A math function can be used wherever <length>, <frequency>, <angle>, <time>, <percentage>, <number>, or <integer> values are allowed.

From https://drafts.csswg.org/css-values-4/#calc-type-checking,

A math function has a resolved type, which is one of <length>, <frequency>, <angle>, <time>, <percentage>, <number>, or <integer>.

From https://drafts.csswg.org/css-values-4/#type-checking-exprs,

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

Why are <number> and <integer> in #1 and #2 but not in #3?

Why are <resolution> and <flex> in #3 but not in #1 nor #2?

Is it necessary to repeat this list three times?

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