|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
package org.jetbrains.compose.web.core.tests.css |
|
|
|
|
|
|
|
|
|
import org.jetbrains.compose.web.core.tests.runTest |
|
|
|
|
import org.jetbrains.compose.web.css.matrix3dTransform |
|
|
|
|
import org.jetbrains.compose.web.css.matrixTransform |
|
|
|
|
import org.jetbrains.compose.web.css.transform |
|
|
|
|
import org.jetbrains.compose.web.dom.Div |
|
|
|
@ -16,9 +17,19 @@ class TransitionTests {
|
|
|
|
|
@Test |
|
|
|
|
fun matrix() = runTest { |
|
|
|
|
composition { |
|
|
|
|
Div({style { transform(matrixTransform(1, 2, -1, 1, 80, 80)) }}) |
|
|
|
|
Div({ style { transform(matrixTransform(1, 2, -1, 1, 80, 80)) } }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
assertEquals("matrix(1, 2, -1, 1, 80, 80)", nextChild().style.transform) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
fun matrix3d() = runTest { |
|
|
|
|
composition { |
|
|
|
|
Div({ style { transform(matrix3dTransform(1, 0, 0, 0, 0, 1, 6, 0, 0, 0, 1, 0, 50, 100, 0, 1.1)) } }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
assertEquals("matrix3d(1, 0, 0, 0, 0, 1, 6, 0, 0, 0, 1, 0, 50, 100, 0, 1.1)", nextChild().style.transform) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |