Browse Source

dom: Add a test for `auto` keyword in inline style

pull/737/head
Oleksandr Karpovich 3 years ago
parent
commit
59470f36c6
  1. 25
      web/core/src/jsTest/kotlin/InlineStyleTests.kt

25
web/core/src/jsTest/kotlin/InlineStyleTests.kt

@ -3,13 +3,7 @@ package org.jetbrains.compose.web.core.tests
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import org.jetbrains.compose.web.css.Color
import org.jetbrains.compose.web.css.backgroundColor
import org.jetbrains.compose.web.css.border
import org.jetbrains.compose.web.css.color
import org.jetbrains.compose.web.css.opacity
import org.jetbrains.compose.web.css.padding
import org.jetbrains.compose.web.css.px
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.dom.Span
import org.jetbrains.compose.web.dom.Text
import kotlin.test.Test
@ -173,4 +167,21 @@ class InlineStyleTests {
actual = root.innerHTML
)
}
@Test
fun heightAuto() = runTest {
composition {
Span({
style {
height(auto)
}
id("container")
})
}
assertEquals(
expected = "<span id=\"container\" style=\"height: auto;\"></span>",
actual = root.innerHTML
)
}
}
Loading…
Cancel
Save