diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt index f471a86347..eb9db035b4 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt @@ -135,6 +135,11 @@ external interface CSSNumericValue : CSSStyleValue { fun to(unit: String): CSSUnitValue fun toSum(vararg units: String): CSSMathSum fun type(): CSSNumericType + + @Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE") + companion object { + fun parse(cssText: String): CSSNumericValue + } } abstract external class CSSNumericValueJS : CSSNumericValue { @@ -148,10 +153,6 @@ abstract external class CSSNumericValueJS : CSSNumericValue { override fun to(unit: String): CSSUnitValue override fun toSum(vararg units: String): CSSMathSum override fun type(): CSSNumericType - - companion object { - fun parse(cssText: String): CSSNumericValue - } } external interface CSSUnitValue : CSSNumericValue {