|
|
|
@ -205,4 +205,15 @@ class GridAreaTests {
|
|
|
|
|
assertEquals("span 2 / span another-grid-area / span 3 / span 2", el.style.asDynamic().gridArea) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class GridTemplateAreasTests { |
|
|
|
|
@Test |
|
|
|
|
fun gridTemplateAreas() = runTest { |
|
|
|
|
composition { |
|
|
|
|
Div({ style { gridTemplateAreas("head head", "nav main", "nav foot") } }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
assertEquals("\"head head\" \"nav main\" \"nav foot\"", (root.children[0] as HTMLElement).style.asDynamic().gridTemplateAreas) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|