remove support for flex: 0 since chrome behavior is really weird

This commit is contained in:
Christopher Chedeau
2014-12-11 16:52:38 +00:00
parent 544f377f20
commit e838124625
2 changed files with 19 additions and 1 deletions

View File

@@ -1114,6 +1114,19 @@ describe('Layout', function() {
);
});
// This behavior is very weird. The child has a width of 0 but somehow the
// parent has a width of 500. Looks like a bug rather than a feature.
xit('should layout with flex: 0 and a specific width', function() {
testLayout(
{style: {flexDirection: 'row'}, children: [
{style: {width: 500, flex: 0}}
]},
{width: 500, height: 0, top: 0, left: 0, children: [
{width: 0, height: 0, top: 0, left: 0}
]}
);
});
xit('should layout with nested padding', function() {
testLayout(
{style: {}, children: [