[css-typed-om] CSSMathClamp’s min and max props conflict with CSSNumericValue’s methods · Issue #855 · w3c/css-houdini-drafts (original) (raw)
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
.