From d6e1efdb4174868e9d098ec1fbc02de4c5f692a8 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 9 Apr 2014 19:40:17 -0700 Subject: [PATCH] empty node --- spec/LayoutSpec.js | 14 ++++++++++++++ style.css | 23 ++++++++++------------- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/spec/LayoutSpec.js b/spec/LayoutSpec.js index b41dedb0..7c4a565c 100755 --- a/spec/LayoutSpec.js +++ b/spec/LayoutSpec.js @@ -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} + ] + }); + }); + }); diff --git a/style.css b/style.css index 43650c49..a86d8fef 100644 --- a/style.css +++ b/style.css @@ -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; }