From 7c0eb4bdebab4bf389a9786df3892f32af9c1d3d Mon Sep 17 00:00:00 2001 From: Yongshun Shreck Ye Date: Mon, 30 Dec 2024 19:37:28 +0800 Subject: [PATCH] Add `StyleScope.inset` extension functions --- .../jetbrains/compose/web/css/properties/position.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/html/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/properties/position.kt b/html/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/properties/position.kt index 23896d8da5c..4346bb6ca37 100644 --- a/html/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/properties/position.kt +++ b/html/core/src/jsMain/kotlin/org/jetbrains/compose/web/css/properties/position.kt @@ -46,3 +46,14 @@ fun StyleScope.right(value: CSSAutoKeyword) { property("right", value) } +// https://developer.mozilla.org/en-US/docs/Web/CSS/inset +fun StyleScope.inset(vararg value: CSSLengthOrPercentageValue) { + // no Typed OM yet + property("inset", value.joinToString(" ")) +} + +// https://developer.mozilla.org/en-US/docs/Web/CSS/inset +fun StyleScope.inset(vararg value: CSSAutoKeyword) { + // no Typed OM yet + property("inset", value.joinToString(" ")) +}