empty node

This commit is contained in:
Christopher Chedeau
2014-04-09 19:40:17 -07:00
parent 0dcb7080ff
commit d6e1efdb41
2 changed files with 24 additions and 13 deletions

View File

@@ -446,5 +446,19 @@ describe('Layout', function() {
});
});
it('should layout empty node', function() {
testLayout({
style: {},
children: [
{style: {}}
]
}, {
width: 0, height: 0, top: 0, left: 0,
children: [
{width: 0, height: 0, top: 0, left: 0}
]
});
});
});

View File

@@ -1,20 +1,17 @@
div {
display: flex;
flex-direction: column;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
* {
border-style: solid;
border-width: 0;
padding: 0;
box-sizing: border-box;
font-family: Helvetica;
}
html, body {
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: flex-start;
margin: 0;
padding: 0;
}