I'm experimenting with Kotlin/JS, building a web toy. All the pure-Kotlin logic works fine (though unit testing is slower than on JVM, and it can't locate the lines that throw exceptions) and the HTML DSL was easy to pick up and extend, so long as I was just using old, old HTML - tables, divs, spans, and the like.
But I can't seem to get more 'modern' CSS to work at all!
I'm trying to specify a transition. My
expectation is that within a
css {}
block, I should either be setting
transition
or be setting
transitionProperty
+
transitionDuration
. But while the
css.transition
property is a
Transition?
, clicking through to the
Transition
source shows it as a
sealed external interface
, not a class with constructor parameters.
Similarly, I'd like to set a gradient background. Again, I
expect that I should set
backgroundImage
within a
css {}
block, but
BackgroundImage
is also coming up as a
sealed external interface
.
Should these features be working as I expect, or are they still works in progress? Is it possible that my project configuration needs some tweaking? (The libraries do include Gradle:
org.jetbrains.kotlin-wrappers:kotlin-csstype:klib:3.1.0-pre.3462
.)