Skip to content

[css-values] Range constraints and functions #4191

@ewilligers

Description

@ewilligers

Width and duration properties may not be negative. Is min(1em - 30px, 10px - 1em) a valid width? Is calc((sin(1em / 1px) - 2) * 1s) a valid duration?

Mathematically, they are always negative, but it isn't clear if the parser is required to detect this and reject the values, or if the parser should accept the values, with clamping happening later.

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