Browse Source

Remove CSSNumericValue::equals since it clashes with regular equals and can not be actually called

Our goal is not to provide precise CSSOM model but a convenient
composable css API and users are supposed to be agnostic about CSSOM
pull/756/head
Shagen Ogandzhanian 3 years ago
parent
commit
c5b661850b
  1. 4
      web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt

4
web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt

@ -132,8 +132,6 @@ external interface CSSNumericValue : CSSStyleValue {
fun min(vararg values: CSSNumberish): CSSNumericValue
fun max(vararg values: CSSNumberish): CSSNumericValue
fun equals(vararg values: CSSNumberish): Boolean
fun to(unit: String): CSSUnitValue
fun toSum(vararg units: String): CSSMathSum
fun type(): CSSNumericType
@ -147,8 +145,6 @@ abstract external class CSSNumericValueJS : CSSNumericValue {
override fun min(vararg values: CSSNumberish): CSSNumericValue
override fun max(vararg values: CSSNumberish): CSSNumericValue
override fun equals(vararg values: CSSNumberish): Boolean
override fun to(unit: String): CSSUnitValue
override fun toSum(vararg units: String): CSSMathSum
override fun type(): CSSNumericType

Loading…
Cancel
Save