Move else if
Remove alphabetical order comment that wasn't being adhered to anyway
move more else ifs
explicitly set 1 1 auto for flex
Avoid testing user agent