Skip to content

[css-typed-om] CSSMathClamp’s min and max props conflict with CSSNumericValue’s methods #855

Closed
@miyaokamarina

Description

@miyaokamarina

CSSMathClamp’s min and max attributes are incompatible with CSSNumericValue’s methods min and max.

This design violates the Liskov substitution principle. Also current version of the interface cannot be properly typed with TypeScript and Flow.

Possible compatible names for these attributes are lower and upper.

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