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

miyaokamarina has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] CSSMathClamp’s min and max props conflict with CSSNumericValue’s methods ==
[`CSSMathClamp`](https://drafts.css-houdini.org/css-typed-om-1/#cssmathclamp)’s `min` and `max` attributes are incompatible with [`CSSNumericValue`](https://drafts.css-houdini.org/css-typed-om-1/#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`.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/855 using your GitHub account

Received on Thursday, 31 January 2019 03:36:59 UTC