Skip to content

[css-typed-om] CSSNumericValue.parse() should accept 'min()' and 'max()' #579

@dbaron

Description

@dbaron

The definition of CSSNumericValue.parse() says:

If result is not a <number-token>, <percentage-token>, <dimension-token>, or a <calc()>, throw a SyntaxError and abort this algorithm.

Given that this includes <calc()>, it seems like it should also include <min()> and <max()> which are defined at the same place, but aren't clearly included. (They also aren't clearly forbidden, given that the link for <calc()> links to a definition of all three.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions