Moving styles, Stacks working in Group

This commit is contained in:
metacryst
2024-09-12 15:35:13 -05:00
parent cfdf67998d
commit 1060797170
2 changed files with 68 additions and 42 deletions

View File

@@ -15,4 +15,24 @@ window.testSuites.push( class testGroup {
}
}
VStack() {
let divs = Group(() => {
VStack(() => {
div()
div()
div()
})
})
if(!(divs instanceof HTMLElement)) {
return `Did not receive an element!`
}
if(!(divs.style.display === "flex")) {
return `Did not receive a flex container!`
}
if(!(divs.children.length === 3)) {
return `Incorrect amount of children!`
}
}
})