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

@@ -71,9 +71,14 @@ describe('Random layout', function() {
randEnum(node, 0.5, 'alignItems', ['flex-start', 'center', 'flex-end', 'stretch']);
randEnum(node, 0.5, 'alignSelf', ['flex-start', 'center', 'flex-end', 'stretch']);
randEnum(node, 0.5, 'position', ['relative', 'absolute']);
//randEnum(node, 0.5, 'flexWrap', ['nowrap', 'wrap']);
randEnum(node, 0.5, 'flexWrap', ['nowrap', 'wrap']);
//randEnum(node, 0.5, 'measure', [text(texts.small), text(texts.big)]);
// Chrome is doing some very weird things with this. Probably not worth supporting
if (node.style.flex === 0) {
delete node.style.flex;
}
if (node.style.measure) {
// align-items: stretch on a text node makes it wrap in a different way.
// We don't yet support this use case